[patch V3 17/32] cpu/hotplug: Use stop_machine_cpuslocked() in takedown_cpu()

2017-05-24 Thread Thomas Gleixner
From: Sebastian Andrzej Siewior takedown_cpu() is a cpu hotplug function invoking stop_machine(). The cpu hotplug machinery holds the hotplug lock for write. stop_machine() invokes get_online_cpus() as well. This is correct, but prevents the conversion of the hotplug

[patch V3 17/32] cpu/hotplug: Use stop_machine_cpuslocked() in takedown_cpu()

2017-05-24 Thread Thomas Gleixner
From: Sebastian Andrzej Siewior takedown_cpu() is a cpu hotplug function invoking stop_machine(). The cpu hotplug machinery holds the hotplug lock for write. stop_machine() invokes get_online_cpus() as well. This is correct, but prevents the conversion of the hotplug locking to a percpu rwsem.