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

2008-08-25 Thread Benjamin Herrenschmidt
> #ifdef CONFIG_SMP > - mfspr r12,SPRN_SPRG3 > - lwz r11,TI_CPU(r12) /* get cpu number * 4 */ > + lwz r11,TI_CPU(r9) /* get cpu number * 4 */ > slwir11,r11,2 > #else > li r11,0 > #endif > + > + lwz r9,_LINK(r11) /* in

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

2008-08-25 Thread Kumar Gala
diff --git a/arch/powerpc/kernel/idle_6xx.S b/arch/powerpc/kernel/ idle_6xx.S index 019b02d..0138d88 100644 --- a/arch/powerpc/kernel/idle_6xx.S +++ b/arch/powerpc/kernel/idle_6xx.S @@ -151,19 +151,20 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC) * Return from NAP/DOZE mode, restore some CPU specifi

[PATCH] 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. Since we already have thread_info in r9 there is no reason to bother to figure it out again. This was pointed out by Chen Gong <[EMAIL PROTECTED]> Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- Paul, this is in for-2.6.27