aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/core.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-02-04 11:30:57 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-02-04 12:52:19 -0500
commita8655e83fc44ec2b92cbea9f3ff3cc0da05a991c (patch)
tree56bdc711208aca8b514e7366b56c66b9c05ac1be /arch/arm/mach-realview/core.c
parent3e459990961db7f3f2dcf21e2b38a7216dfd10dd (diff)
[ARM] 4814/1: RealView: Add broadcasting clockevents support for ARM11MPCore
This patch adds dummy local timers for each CPU so that the board clock device is used to broadcast events to the other CPUs. The patch also adds the declaration for the dummy_timer_setup function (the equivalent of local_timer_setup when CONFIG_LOCAL_TIMERS is not set). Due to the way clockevents work, the dummy timer on the first CPU has to be registered before the board timer. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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