diff options
author | Paul Mackerras <paulus@samba.org> | 2005-09-10 07:13:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:15:11 -0400 |
commit | 31139971b3dc9fbb2e8a8572fb81e6e8470f363a (patch) | |
tree | 644fc6833fe6e18d00dbc8b6b281f77e7b923d35 /arch/ppc/platforms/pmac_sleep.S | |
parent | bb0bb3b6596cdb08adb0b72453cc67d48e139c2c (diff) |
[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>
Diffstat (limited to 'arch/ppc/platforms/pmac_sleep.S')
-rw-r--r-- | arch/ppc/platforms/pmac_sleep.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/platforms/pmac_sleep.S b/arch/ppc/platforms/pmac_sleep.S index 8d67adc76925..88419c77ac43 100644 --- a/arch/ppc/platforms/pmac_sleep.S +++ b/arch/ppc/platforms/pmac_sleep.S | |||
@@ -161,6 +161,8 @@ _GLOBAL(low_sleep_handler) | |||
161 | addi r3,r3,sleep_storage@l | 161 | addi r3,r3,sleep_storage@l |
162 | stw r5,0(r3) | 162 | stw r5,0(r3) |
163 | 163 | ||
164 | .globl low_cpu_die | ||
165 | low_cpu_die: | ||
164 | /* Flush & disable all caches */ | 166 | /* Flush & disable all caches */ |
165 | bl flush_disable_caches | 167 | bl flush_disable_caches |
166 | 168 | ||