cpu/hotplug: Handle early registration gracefully
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Jul 2016 17:16:03 +0000 (17:16 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 14 Jul 2016 07:34:25 +0000 (09:34 +0200)
commit6a4e24518c8a10f78f44da219835239cb5aca90d
treec6f9d65b40f0533a390f9335596e327a2003218c
parente877bde234ee8e7aa73b8b3e3f1f67bc99c9b034
cpu/hotplug: Handle early registration gracefully

We switched the hotplug machinery to smpboot threads. Early registration of
hotplug callbacks, i.e. from do_pre_smp_initcalls(), happens before the
threads are initialized. Instead of moving the thread init, we simply handle
it in the hotplug code itself and invoke the function directly.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153332.896450738@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/cpu.c