Re: [RFC PATCH V1 4/7] cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routines

2011-06-20 Thread Trinabh Gupta
On 06/17/2011 10:02 AM, Benjamin Herrenschmidt wrote: On Tue, 2011-06-07 at 22:00 +0530, Trinabh Gupta wrote: diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index 39a2baa..932392b 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c @@ -102,6 +102,24

Re: [RFC PATCH V1 4/7] cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routines

2011-06-16 Thread Benjamin Herrenschmidt
On Tue, 2011-06-07 at 22:00 +0530, Trinabh Gupta wrote: > diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c > index 39a2baa..932392b 100644 > --- a/arch/powerpc/kernel/idle.c > +++ b/arch/powerpc/kernel/idle.c > @@ -102,6 +102,24 @@ void cpu_idle(void) > } > } > > +stat

[RFC PATCH V1 4/7] cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routines

2011-06-07 Thread Trinabh Gupta
This patch provides cpu_idle_wait() routine required by the cpuidle subsystem. Almost all the code is borrowed from x86. Signed-off-by: Trinabh Gupta Signed-off-by: Arun R Bharadwaj --- arch/powerpc/Kconfig |4 arch/powerpc/include/asm/system.h |1 + arch/powerpc/kern