Re: [PATCH v2] powerpc: Fix determining TI_CPU in power_save_ppc32_restore()

2008-08-29 Thread Kumar Gala
On Aug 25, 2008, at 11:39 PM, Benjamin Herrenschmidt wrote: On Mon, 2008-08-25 at 21:08 -0500, Kumar Gala wrote: The calculation to get TI_CPU based off of SPRG3 was just plain wrong. Just offset off the stack pointer (to get to thread_info) like all the other references to TI_CPU do. Thi

Re: [PATCH v2] powerpc: Fix determining TI_CPU in power_save_ppc32_restore()

2008-08-25 Thread Benjamin Herrenschmidt
On Mon, 2008-08-25 at 21:08 -0500, Kumar Gala wrote: > The calculation to get TI_CPU based off of SPRG3 was just plain wrong. > 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 <[EMAIL PROTECTED]> > > Sig

[PATCH v2] powerpc: Fix determining TI_CPU in power_save_ppc32_restore()

2008-08-25 Thread Kumar Gala
The calculation to get TI_CPU based off of SPRG3 was just plain wrong. 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 <[EMAIL PROTECTED]> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- The first version w