aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/localtimer.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-02-04 11:45:03 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-02-04 12:52:27 -0500
commit39e823e35b791b905e0d8eba62e8b3a0b3351936 (patch)
tree0bb4c51e56d3ff903d53479e1a602a50ee05fc54 /arch/arm/mach-realview/localtimer.c
parent8cc4c5488a28fe6a1f834e99317bb762798600f7 (diff)
[ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c
This patch removes the TWD_BASE macro used to set up and configure the local timers on ARM11MPCore. The twd_base_addr and twd_size variables are defined in localtimer.c and set from the realview_eb_init function. 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/localtimer.c')
-rw-r--r--arch/arm/mach-realview/localtimer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-realview/localtimer.c b/arch/arm/mach-realview/localtimer.c
index 60500f0b878d..50604360479f 100644
--- a/arch/arm/mach-realview/localtimer.c
+++ b/arch/arm/mach-realview/localtimer.c
@@ -24,9 +24,6 @@
24#include <asm/io.h> 24#include <asm/io.h>
25#include <asm/irq.h> 25#include <asm/irq.h>
26 26
27#define TWD_BASE(cpu) (__io_address(REALVIEW_EB11MP_TWD_BASE) + \
28 ((cpu) * REALVIEW_EB11MP_TWD_SIZE))
29
30static DEFINE_PER_CPU(struct clock_event_device, local_clockevent); 27static DEFINE_PER_CPU(struct clock_event_device, local_clockevent);
31 28
32/* 29/*
@@ -41,6 +38,12 @@ void local_timer_interrupt(void)
41 38
42#ifdef CONFIG_LOCAL_TIMERS 39#ifdef CONFIG_LOCAL_TIMERS
43 40
41#define TWD_BASE(cpu) (twd_base_addr + (cpu) * twd_size)
42
43/* set up by the platform code */
44void __iomem *twd_base_addr;
45unsigned int twd_size;
46
44static unsigned long mpcore_timer_rate; 47static unsigned long mpcore_timer_rate;
45 48
46static void local_timer_set_mode(enum clock_event_mode mode, 49static void local_timer_set_mode(enum clock_event_mode mode,