[PATCH] [v5] Add idle wait support for 44x platforms

Josh Boyer jwboyer at linux.vnet.ibm.com
Thu Apr 10 21:53:37 EST 2008


On Tue, 08 Apr 2008 11:49:14 -0500
Jerone Young <jyoung5 at us.ibm.com> wrote:

> 2 files changed, 77 insertions(+), 1 deletion(-)
> arch/powerpc/platforms/44x/Makefile |    2 
> arch/powerpc/platforms/44x/idle.c   |   76 +++++++++++++++++++++++++++++++++++
> 
> 
> Updates: Now setting MSR_WE is now default
>          Tested on hardware platforms bamboo & sequioa and appears
>          things are working fine on actually hardware!
> 
> This patch adds the ability for the CPU to go into wait state while in cpu_idle loop. This helps virtulization solutions know when the guest Linux kernel is in an idle state. There are two ways to do it.
> 
> Command line
> 	idle=spin <-- CPU will spin
> 	idle=wait <-- set CPU into wait state when idle (default)
> 
> 
> Signed-off-by: Jerone Young <jyoung5 at us.ibm.com>

Looks great.  I'll add it to my tree shortly.

josh



More information about the Linuxppc-dev mailing list