aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/asm-arm/smp.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/asm-arm/smp.h b/include/asm-arm/smp.h
index 1f7c51a1886d..af99636db400 100644
--- a/include/asm-arm/smp.h
+++ b/include/asm-arm/smp.h
@@ -107,10 +107,6 @@ extern void platform_cpu_enable(unsigned int cpu);
107extern void local_timer_interrupt(void); 107extern void local_timer_interrupt(void);
108 108
109#ifdef CONFIG_LOCAL_TIMERS 109#ifdef CONFIG_LOCAL_TIMERS
110/*
111 * Setup a local timer interrupt for a CPU.
112 */
113extern void local_timer_setup(unsigned int cpu);
114 110
115/* 111/*
116 * Stop a local timer interrupt. 112 * Stop a local timer interrupt.
@@ -124,10 +120,6 @@ extern int local_timer_ack(void);
124 120
125#else 121#else
126 122
127static inline void local_timer_setup(unsigned int cpu)
128{
129}
130
131static inline void local_timer_stop(unsigned int cpu) 123static inline void local_timer_stop(unsigned int cpu)
132{ 124{
133} 125}
@@ -135,6 +127,11 @@ static inline void local_timer_stop(unsigned int cpu)
135#endif 127#endif
136 128
137/* 129/*
130 * Setup a local timer interrupt for a CPU.
131 */
132extern void local_timer_setup(unsigned int cpu);
133
134/*
138 * show local interrupt info 135 * show local interrupt info
139 */ 136 */
140extern void show_local_irqs(struct seq_file *); 137extern void show_local_irqs(struct seq_file *);