]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/cpu.c
cpu: Handle smpboot_unpark_threads() uniformly
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Apr 2015 19:45:41 +0000 (12:45 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:58:39 +0000 (12:58 -0700)
commit64eaf974218d576812919c8b1a8d87ded4e695d9
tree81d70a7b65f3da8f6a15669b5da0a81b26a9c59e
parenta738eec6c6082f48cbcf0157fd9f550e286ea04b
cpu: Handle smpboot_unpark_threads() uniformly

Commit 00df35f99191 (cpu: Defer smpboot kthread unparking until CPU known
to scheduler) put the online path's call to smpboot_unpark_threads()
into a CPU-hotplug notifier.  This commit places the offline-failure
paths call into the same notifier for the sake of uniformity.

Note that it is not currently possible to place the offline path's call to
smpboot_park_threads() into an existing notifier because the CPU_DYING
notifiers run in a restricted environment, and the CPU_UP_PREPARE
notifiers run too soon.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/cpu.c