Searched refs:cpu_hotplug (Results 1 – 3 of 3) sorted by relevance
54 } cpu_hotplug = { variable56 .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock),63 if (cpu_hotplug.active_writer == current) in get_online_cpus()65 mutex_lock(&cpu_hotplug.lock); in get_online_cpus()66 cpu_hotplug.refcount++; in get_online_cpus()67 mutex_unlock(&cpu_hotplug.lock); in get_online_cpus()74 if (cpu_hotplug.active_writer == current) in put_online_cpus()76 mutex_lock(&cpu_hotplug.lock); in put_online_cpus()77 if (!--cpu_hotplug.refcount && unlikely(cpu_hotplug.active_writer)) in put_online_cpus()78 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_map will not change.