Skip to contentSkip to conversation

ARM: mach-shmobile: add shmobile_earlytimer_init()

PATCH Applied Magnus Damm 1 participant 1 message Mar 6, 2012

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/8 ARM: mach-shmobile: add shmobile_earlytimer_init()

From: Magnus Damm <[email protected]>

Add shmobile_earlytimer_init() that can be used to enable the earlytimer probing from the SoC code.

---

 arch/arm/mach-shmobile/include/mach/common.h |    1 +
 arch/arm/mach-shmobile/timer.c               |    7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/include/mach/common.h +1 -0
@@ -1,6 +1,7 @@
 #ifndef __ARCH_MACH_COMMON_H
 #define __ARCH_MACH_COMMON_H
 
+extern void shmobile_earlytimer_init(void);
 extern struct sys_timer shmobile_timer;
 extern void shmobile_setup_console(void);
 extern void shmobile_secondary_vector(void);
arch/arm/mach-shmobile/timer.c +6 -1
@@ -36,11 +36,16 @@ static void __init shmobile_late_time_in
 	early_platform_driver_probe("earlytimer", 2, 0);
 }
 
-static void __init shmobile_timer_init(void)
+void __init shmobile_earlytimer_init(void)
 {
 	late_time_init = shmobile_late_time_init;
 }
 
+static void __init shmobile_timer_init(void)
+{
+	shmobile_earlytimer_init();
+}
+
 struct sys_timer shmobile_timer = {
 	.init		= shmobile_timer_init,
 };