diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-26 04:08:56 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-09-03 12:53:47 +0200 |
commit | 7888bc2b4778fda267a6e6422c4497dba865a47a (patch) | |
tree | 3cc3039536a510361aaea6031f400b30b8bc6253 /Documentation/frv | |
parent | powerpc: Fix build error with 64K pages and !hugetlbfs (diff) | |
download | linux-7888bc2b4778fda267a6e6422c4497dba865a47a.tar.xz linux-7888bc2b4778fda267a6e6422c4497dba865a47a.zip |
powerpc: Fix for getting CPU number in power_save_ppc32_restore()
The calculation to get TI_CPU based off of SPRG3 was just plain wrong,
meaning that we were getting garbage for the CPU number on 6xx/G3/G4
based SMP boxes in this code.
Just offset off the stack pointer (to get to thread_info) like all the
other references to TI_CPU do.
This was pointed out by Chen Gong <G.Chen@freescale.com>
[paulus@samba.org - use rlwinm r12,r11,... instead of
rlwinm r12,r1,...; tophys()]
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'Documentation/frv')
0 files changed, 0 insertions, 0 deletions