summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/include/mach/common.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2011-04-28 21:36:07 +0400
committerPaul Mundt <lethal@linux-sh.org>2011-05-25 06:19:23 +0400
commit0af4817b80870cc12f4b6f38d89f3c012a7a6b28 (patch)
tree71898dbecacbd02273eb47859e9e235293217b96 /arch/arm/mach-shmobile/include/mach/common.h
parent97991657be8d85c2883ca477964f271d8c1bb96d (diff)
downloadlinux-0af4817b80870cc12f4b6f38d89f3c012a7a6b28.tar.xz
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/mach/common.h')
-rw-r--r--arch/arm/mach-shmobile/include/mach/common.h3
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);