Searched refs:cpu_hotplug (Results 1 – 3 of 3) sorted by relevance
55 } cpu_hotplug = { variable57 .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock),64 if (cpu_hotplug.active_writer == current) in get_online_cpus()66 mutex_lock(&cpu_hotplug.lock); in get_online_cpus()67 cpu_hotplug.refcount++; in get_online_cpus()68 mutex_unlock(&cpu_hotplug.lock); in get_online_cpus()75 if (cpu_hotplug.active_writer == current) in put_online_cpus()77 mutex_lock(&cpu_hotplug.lock); in put_online_cpus()78 if (!--cpu_hotplug.refcount && unlikely(cpu_hotplug.active_writer)) in put_online_cpus()79 wake_up_process(cpu_hotplug.active_writer); in put_online_cpus()[all …]
8 obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o
117 cpu_hotplug.refcount is non zero, the cpu_online_mask will not change.