summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-09-22 15:42:25 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:38 +0200
commit2e64ac0ca64482f78d32a955dd8e49eb87582a4e (patch)
tree8f2ac5567688a93dfc4cf198b142eb515114bc7a /arch/arm/include
parent76e10d158efb6d4516018846f60c2ab5501900bc (diff)
ARM: kernel: smp_twd: Add save/restore functions
Add simple save and restore functions which needs to be called before/after the core(s) are powered off. Change-Id: I95b7e5205d067e3c4949ba09370ea099633ca54e Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32133
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/smp_twd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/smp_twd.h b/arch/arm/include/asm/smp_twd.h
index 0f01f4677bd..e0faaeb30ea 100644
--- a/arch/arm/include/asm/smp_twd.h
+++ b/arch/arm/include/asm/smp_twd.h
@@ -42,4 +42,12 @@ static inline void twd_local_timer_of_register(void)
}
#endif
+#if defined(CONFIG_HOTPLUG) || defined(CONFIG_CPU_IDLE)
+void twd_save(void);
+void twd_restore(void);
+#else
+static inline void twd_save(void) { }
+static inline void twd_restore(void) { }
+#endif
+
#endif