Kumar Gala 7888bc2b47 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>
2008-09-03 20:53:47 +10:00
..
2008-08-25 01:18:06 -04:00
2008-08-01 13:03:49 -07:00
2008-07-26 12:00:11 -07:00
2008-09-02 10:57:29 -07:00
2008-08-25 18:15:01 +02:00
2008-07-30 09:41:45 -07:00
2008-09-02 20:35:56 -07:00
2008-07-26 12:00:09 -07:00