Skip to contentSkip to conversation

ARM: mach-shmobile: sh7372 Core Standby CPUIdle prototype

PATCH/RFC Magnus Damm 1 participant 1 message Apr 5, 2011

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

From: Magnus Damm <[email protected]>

This patch adds sh7372 Core Standby CPUIdle support, most parts nicked from the OMAP2 implementation.

About 55 mW seems to be saved compared to simple WFI. The latency information needs more work.

Not-yet-signed-off-by Magnus Damm <[email protected]>

---

 arch/arm/mach-shmobile/Makefile         |    5 
 arch/arm/mach-shmobile/cpuidle-sh7372.c |  136 +++++++++++++++++
 arch/arm/mach-shmobile/sleep-sh7372.S   |  244 +++++++++++++++++++++++++++++++
 3 files changed, 385 insertions(+)
arch/arm/mach-shmobile/Makefile +4 -0
@@ -30,6 +30,10 @@ obj-$(CONFIG_ARCH_SH7377)	+= entry-intc.
 obj-$(CONFIG_ARCH_SH7372)	+= entry-intc.o
 obj-$(CONFIG_ARCH_SH73A0)	+= entry-gic.o
 
+# CPUIdle
+cpuidle-y			:+cpuidle-$(CONFIG_ARCH_SH7372)	+= cpuidle-sh7372.o sleep-sh7372.o
+
 # Board objects
 obj-$(CONFIG_MACH_G3EVM)	+= board-g3evm.o
 obj-$(CONFIG_MACH_G4EVM)	+= board-g4evm.o
@@ -40,3 +44,4 @@ obj-$(CONFIG_MACH_MACKEREL)	+= board-mac
 # Framework support
 obj-$(CONFIG_SMP)		+= $(smp-y)
 obj-$(CONFIG_GENERIC_GPIO)	+= $(pfc-y)
+obj-$(CONFIG_CPU_IDLE)		+= ${cpuidle-y}
arch/arm/mach-shmobile/cpuidle-sh7372.c new file +136 -0

136 lines not on this page · raw message

arch/arm/mach-shmobile/sleep-sh7372.S new file +242 -0

242 lines not on this page · raw message