aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-realview/core.c')
-rw-r--r--arch/arm/mach-realview/core.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c
index 6c68deed84d..8cabfec31da 100644
--- a/arch/arm/mach-realview/core.c
+++ b/arch/arm/mach-realview/core.c
@@ -596,12 +596,20 @@ static void __init realview_clocksource_init(void)
596} 596}
597 597
598/* 598/*
599 * Set up timer interrupt, and return the current time in seconds. 599 * Set up the clock source and clock events devices
600 */ 600 */
601static void __init realview_timer_init(void) 601static void __init realview_timer_init(void)
602{ 602{
603 u32 val; 603 u32 val;
604 604
605#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
606 /*
607 * The dummy clock device has to be registered before the main device
608 * so that the latter will broadcast the clock events
609 */
610 local_timer_setup(smp_processor_id());
611#endif
612
605 /* 613 /*
606 * set clock frequency: 614 * set clock frequency:
607 * REALVIEW_REFCLK is 32KHz 615 * REALVIEW_REFCLK is 32KHz