diff options
author | Magnus Damm | 2011-04-28 19:36:07 +0200 |
---|---|---|
committer | Paul Mundt | 2011-05-25 04:19:23 +0200 |
commit | 0af4817b80870cc12f4b6f38d89f3c012a7a6b28 (patch) | |
tree | 71898dbecacbd02273eb47859e9e235293217b96 /arch/arm/mach-shmobile/include | |
parent | ARM: mach-shmobile: sh7372 Core Standby Suspend-to-RAM (diff) | |
download | kernel-qcow2-linux-0af4817b80870cc12f4b6f38d89f3c012a7a6b28.tar.gz kernel-qcow2-linux-0af4817b80870cc12f4b6f38d89f3c012a7a6b28.tar.xz kernel-qcow2-linux-0af4817b80870cc12f4b6f38d89f3c012a7a6b28.zip |
ARM: mach-shmobile: CPUIdle support
This patch adds a shared SH-Mobile ARM specific CPUIdle
implementation supporting WFI only at this point. It
serves as a common point for late registration of the
arch-specific CPUIdle code, and supports adding extra
sleep modes using the callback shmobile_cpuidle_setup()
together with shmobile_cpuidle_modes[].
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/include')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h index 4b653e92d72e..06aecb31d9c7 100644 --- a/arch/arm/mach-shmobile/include/mach/common.h +++ b/arch/arm/mach-shmobile/include/mach/common.h @@ -9,6 +9,9 @@ extern int clk_init(void); extern void shmobile_handle_irq_intc(struct pt_regs *); extern void shmobile_handle_irq_gic(struct pt_regs *); extern struct platform_suspend_ops shmobile_suspend_ops; +struct cpuidle_device; +extern void (*shmobile_cpuidle_modes[])(void); +extern void (*shmobile_cpuidle_setup)(struct cpuidle_device *dev); extern void sh7367_init_irq(void); extern void sh7367_add_early_devices(void); |