Skip to contentSkip to conversation

Add idle wait support for 44x platforms

PATCH Superseded Jerone Young 1 participant 1 message Apr 4, 2008

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add idle wait support for 44x platforms

2 files changed, 87 insertions(+), 1 deletion(-)

arch/powerpc/platforms/44x/Makefile | 2
arch/powerpc/platforms/44x/idle.c | 86 +++++++++++++++++++++++++++++++++++

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.

1) Command line
idle=spin <-- CPU will spin (this is the default) idle=wait <-- set CPU into wait state when idle

2) The device tree will be checked for the "/hypervisor" node If this node is seen it will use "wait" for idle, so that the hypervisor can know when guest Linux kernel it is in an idle state.

This patch, unlike the last, isolates the code to 44x platforms.

arch/powerpc/platforms/44x/Makefile +1 -1
@@ -1,4 +1,4 @@ obj-$(CONFIG_44x)	:= misc_44x.o
-obj-$(CONFIG_44x)	:= misc_44x.o
+obj-$(CONFIG_44x)	:= misc_44x.o idle.o
 obj-$(CONFIG_EBONY)	+= ebony.o
 obj-$(CONFIG_TAISHAN)	+= taishan.o
 obj-$(CONFIG_BAMBOO)	+= bamboo.o
arch/powerpc/platforms/44x/idle.c new file +86 -0

86 lines not on this page · raw message

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-ppc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel