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

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Aug 26 14:39:28 EST 2008


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 <G.Chen at freescale.com>
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>






More information about the Linuxppc-dev mailing list