]> git.ipfire.org Git - people/arne_f/kernel.git/commit
s390/smp: Convert to hotplug state machine
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 4 Nov 2016 14:45:03 +0000 (15:45 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 9 Nov 2016 22:45:28 +0000 (23:45 +0100)
commitdfbbd86a0f1c3ceec15b64c8f2149a903806ed8c
tree48b9c879e918efcac10a0dc6efdaf9d8c5133c49
parentef65d45cbfbb438a5fbe8ef3fc424314ff1e8b7c
s390/smp: Convert to hotplug state machine

cpuhp_setup_state() invokes the startup callback on all online cpus with
the proper protection, so we can remove the cpu hotplug protection from the
init function and the creation of the per cpu files for online cpus in
smp_add_present_cpu(). smp_add_present_cpu() is called also called from
__smp_rescan_cpus(), but this callpath never adds an online cpu, it merily
adds newly present cpus, so the creation of the cpu files is not required.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20161104144502.7kd4bxz2rxqvtack@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/s390/kernel/smp.c