summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/include/mach/common.h
diff options
context:
space:
mode:
authorShawn Guo2012-04-26 15:58:41 +0200
committerShawn Guo2012-05-08 14:36:35 +0200
commit21cc1b7ede3cf456cf1d51f8a906093261f7c111 (patch)
treea0e6b7cb4408bba43676db16c910edabe65ea7ce /arch/arm/mach-shmobile/include/mach/common.h
parentARM: sa1100: use machine specific hook for late init (diff)
downloadkernel-qcow2-linux-21cc1b7ede3cf456cf1d51f8a906093261f7c111.tar.gz
kernel-qcow2-linux-21cc1b7ede3cf456cf1d51f8a906093261f7c111.tar.xz
kernel-qcow2-linux-21cc1b7ede3cf456cf1d51f8a906093261f7c111.zip
ARM: shmobile: use machine specific hook for late init
Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Magnus Damm <damm@opensource.se> Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/include/mach/common.h')
-rw-r--r--arch/arm/mach-shmobile/include/mach/common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h
index 83ad3fe0a75f..2a527c4de36c 100644
--- a/arch/arm/mach-shmobile/include/mach/common.h
+++ b/arch/arm/mach-shmobile/include/mach/common.h
@@ -83,4 +83,18 @@ extern void r8a7779_secondary_init(unsigned int cpu);
extern int r8a7779_boot_secondary(unsigned int cpu);
extern void r8a7779_smp_prepare_cpus(void);
+extern void shmobile_init_late(void);
+
+#ifdef CONFIG_SUSPEND
+int shmobile_suspend_init(void);
+#else
+static inline int shmobile_suspend_init(void) { return 0; }
+#endif
+
+#ifdef CONFIG_CPU_IDLE
+int shmobile_cpuidle_init(void);
+#else
+static inline int shmobile_cpuidle_init(void) { return 0; }
+#endif
+
#endif /* __ARCH_MACH_COMMON_H */