smp/hotplug: Undo tglxs brainfart
authorThomas Gleixner <tglx@linutronix.de>
Mon, 26 Dec 2016 21:58:19 +0000 (22:58 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Dec 2016 01:30:24 +0000 (17:30 -0800)
commitb9d9d6911bd5c370ad4b3aa57d758c093d17aed5
treeaa66dffa65f105ab98d5db3707c2262146d7fd8f
parentb4b8664d291ac1998e0f0bcdc96b6397f0fe68b3
smp/hotplug: Undo tglxs brainfart

The attempt to prevent overwriting an active state resulted in a
disaster which effectively disables all dynamically allocated hotplug
states.

Cleanup the mess.

Fixes: dc280d936239 ("cpu/hotplug: Prevent overwriting of callbacks")
Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpu.c