summaryrefslogtreecommitdiffstats
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2017-05-24 10:15:14 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-05-26 10:10:35 +0200
commit71def423fe3da0d40ad3427a4cd5f9edc53bff67 (patch)
tree71a4e6c37a8972226dcf828474b8090d355a727f /kernel/stop_machine.c
parentade3f680a76b474d9f5375a9b1d100ee787bf469 (diff)
downloadlinux-stable-71def423fe3da0d40ad3427a4cd5f9edc53bff67.tar.gz
linux-stable-71def423fe3da0d40ad3427a4cd5f9edc53bff67.tar.bz2
linux-stable-71def423fe3da0d40ad3427a4cd5f9edc53bff67.zip
cpu/hotplug: Provide cpuhp_setup/remove_state[_nocalls]_cpuslocked()
Some call sites of cpuhp_setup/remove_state[_nocalls]() are within a cpus_read locked region. cpuhp_setup/remove_state[_nocalls]() call cpus_read_lock() as well, which is possible in the current implementation but prevents converting the hotplug locking to a percpu rwsem. Provide locked versions of the interfaces to avoid nested calls to cpus_read_lock(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20170524081547.239600868@linutronix.de
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions