]> git.baikalelectronics.ru Git - kernel.git/commit
sched/hotplug: Make activate() the last hotplug step
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Mar 2016 11:54:19 +0000 (12:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 6 May 2016 12:58:25 +0000 (14:58 +0200)
commit91fd47257030f6d8e1e314a3af685d7b6a638d1f
tree0abc1a0c047737a2c06b4f6071a8ac6b3f86033f
parent2589b8aa35283f236e2caeba88ed409c03475921
sched/hotplug: Make activate() the last hotplug step

The scheduler can handle per cpu threads before the cpu is set to active and
it does not allow user space threads on the cpu before active is
set. Attaching to the scheduling domains is also not required before user
space threads can be handled.

Move the activation to the end of the hotplug state space. That also means
that deactivation is the first action when a cpu is shut down.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160310120025.597477199@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/cpuhotplug.h
kernel/cpu.c