[POWERPC] powermac: Support G5 CPU hotplug
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 2 May 2007 20:33:51 +0000 (06:33 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 7 May 2007 10:31:13 +0000 (20:31 +1000)
commitd9333afd6a714760c13f76ba275a32ec7bd979c1
treeb75cb98ff938edca5aa5254b209d58037e8ec89c
parentac18c673e7fa71f62ce613edfe6634edb99f968b
[POWERPC] powermac: Support G5 CPU hotplug

This allows "hotplugging" of CPUs on G5 machines.  CPUs that are
disabled are put into an idle loop with the decrementer frequency set
to minimum.  To wake them up again we kick them just like when bringing
them up.  To stop those CPUs from messing with any global state we stop
them from entering the timer interrupt.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/idle_power4.S
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/platforms/powermac/smp.c
include/asm-powerpc/machdep.h