Lines Matching full:hotplug
11 #include <linux/sched/hotplug.h>
42 * cpuhp_cpu_state - Per cpu hotplug state storage
45 * @thread: Pointer to the hotplug thread
106 * cpuhp_step - Hotplug state machine step
145 * Called from cpu hotplug and from the state register machinery.
321 * We can't have hotplug operations before userspace starts running, in lockdep_assert_cpus_held()
322 * and some init codepaths will knowingly not take the hotplug lock. in lockdep_assert_cpus_held()
343 * Wait for currently running CPU hotplug operations to complete (if any) and
344 * disable future CPU hotplug (from sysfs). The 'cpu_add_remove_lock' protects
346 * hotplug path before performing hotplug operations. So acquiring that lock
347 * guarantees mutual exclusion from any currently running hotplug operations.
359 if (WARN_ONCE(!cpu_hotplug_disabled, "Unbalanced cpu hotplug enable\n")) in __cpu_hotplug_enable()
385 * Architectures that need SMT-specific errata handling during SMT hotplug
487 /* Regular hotplug invocation of the AP hotplug thread */
528 /* Unpark the stopper thread and the hotplug thread of the target cpu */ in bringup_wait_for_ap()
569 * Hotplug state machine related functions
583 * When CPU hotplug is disabled, then taking the CPU down is not in can_rollback_cpu()
613 * The cpu hotplug threads manage the bringup and teardown of the cpus
660 * The BP holds the hotplug lock, but we're now running on the AP, in cpuhp_thread_fun()
734 * If we are up and running, use the hotplug thread. For early calls in cpuhp_invoke_ap_callback()
761 * Clean up the leftovers so the next hotplug operation wont use stale in cpuhp_invoke_ap_callback()
902 /* Unpark the hotplug thread so we can rollback there */ in takedown_cpu()
995 * If the current CPU state is in the range of the AP hotplug thread, in _cpu_down()
1009 * We might have stopped still in the range of the AP hotplug in _cpu_down()
1031 * concurrent CPU hotplug via cpu_add_remove_lock. in _cpu_down()
1092 * stopper and the hotplug thread of the upcoming CPU up and then delegates
1093 * the rest of the online bringup to the hotplug thread.
1141 * If the current CPU state is in the range of the AP hotplug thread, in _cpu_up()
1156 * CPUHP_BRINGUP_CPU. After that the AP hotplug thread is in _cpu_up()
1226 * with the userspace trying to use the CPU hotplug at the same time in freeze_secondary_cpus()
1280 /* Allow everyone to use the CPU hotplug again */ in enable_nonboot_cpus()
1317 * When callbacks for CPU hotplug notifications are being executed, we must
1321 * Hence we need to prevent the freezer from racing with regular CPU hotplug.
1324 * hotplug and Suspend/Hibernate call paths by hooking onto the Suspend/
1356 * to disable cpu hotplug to avoid cpu hotplug race. in cpu_hotplug_pm_sync_init()
1566 WARN(1, "No more dynamic states available for CPU hotplug\n"); in cpuhp_reserve_state()
1575 /* (Un)Install the callbacks for further cpu hotplug operations */ in cpuhp_store_callbacks()
1586 * dangling, which causes wreckage on the next hotplug operation. in cpuhp_store_callbacks()
1690 * depending on the hotplug state of the cpu. in __cpuhp_state_add_instance_cpuslocked()
1727 * __cpuhp_setup_state_cpuslocked - Setup the callbacks for an hotplug machine state
1773 * depending on the hotplug state of the cpu. in __cpuhp_setup_state_cpuslocked()
1836 * on the hotplug state of the cpu. This function is not in __cpuhp_state_remove_instance()
1857 * __cpuhp_remove_state_cpuslocked - Remove the callbacks for an hotplug machine state
1888 * on the hotplug state of the cpu. This function is not in __cpuhp_remove_state_cpuslocked()
2028 .name = "hotplug",
2060 .name = "hotplug",
2100 * abusers of the hotplug machinery (thermal management). in cpuhp_smt_disable()
2105 * called under the sysfs hotplug lock, so it is properly in cpuhp_smt_disable()
2332 * regular CPU hotplug is properly serialized. in set_cpu_online()
2336 * concurrent hotplug operations. in set_cpu_online()