]> 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)
commit9b2827b0db3b6e16ab2bd10de1af35ed090171a1
tree0abc1a0c047737a2c06b4f6071a8ac6b3f86033f
parentc387143025ca0691e46042bb371923a2ce15cfc3
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