]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ppc32: support hotplug cpu on powermacs
authorPaul Mackerras <paulus@samba.org>
Sat, 10 Sep 2005 11:13:13 +0000 (21:13 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 10 Sep 2005 17:15:11 +0000 (10:15 -0700)
commit31139971b3dc9fbb2e8a8572fb81e6e8470f363a
tree644fc6833fe6e18d00dbc8b6b281f77e7b923d35
parentbb0bb3b6596cdb08adb0b72453cc67d48e139c2c
[PATCH] ppc32: support hotplug cpu on powermacs

This allows cpus to be off-lined on 32-bit SMP powermacs.  When a cpu
is off-lined, it is put into sleep mode with interrupts disabled.  It
can be on-lined again by asserting its soft-reset pin, which is
connected to a GPIO pin.

With this I can off-line the second cpu in my dual G4 powermac, which
means that I can then suspend the machine (the suspend/resume code
refuses to suspend if more than one cpu is online, and making it cope
with multiple cpus is surprisingly messy).

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/Kconfig
arch/ppc/kernel/head.S
arch/ppc/kernel/idle.c
arch/ppc/kernel/smp.c
arch/ppc/platforms/pmac_sleep.S
arch/ppc/platforms/pmac_smp.c
include/asm-ppc/smp.h