diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-05-17 13:58:34 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-05-17 13:58:34 -0400 |
commit | bc28248ee25e5c239cbe6afca35a100b08401de5 (patch) | |
tree | 89fb6944170bc85b5c9261cd7c7dba6954994cc3 /arch/arm/mach-realview/platsmp.c | |
parent | ee348d5a1d810bc9958cabb7c27302aab235d36e (diff) |
[ARM] smp: move core localtimer support out of platform specific files
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/platsmp.c')
-rw-r--r-- | arch/arm/mach-realview/platsmp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index 30a9c68591f6..b34d3a57ce93 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/cacheflush.h> | 19 | #include <asm/cacheflush.h> |
20 | #include <mach/hardware.h> | 20 | #include <mach/hardware.h> |
21 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
22 | #include <asm/localtimer.h> | ||
22 | 23 | ||
23 | #include <mach/board-eb.h> | 24 | #include <mach/board-eb.h> |
24 | #include <mach/board-pb11mp.h> | 25 | #include <mach/board-pb11mp.h> |
@@ -217,13 +218,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
217 | if (max_cpus > ncores) | 218 | if (max_cpus > ncores) |
218 | max_cpus = ncores; | 219 | max_cpus = ncores; |
219 | 220 | ||
220 | #if defined(CONFIG_LOCAL_TIMERS) || defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) | ||
221 | /* | ||
222 | * Enable the local timer or broadcast device for the boot CPU. | ||
223 | */ | ||
224 | local_timer_setup(); | ||
225 | #endif | ||
226 | |||
227 | /* | 221 | /* |
228 | * Initialise the present map, which describes the set of CPUs | 222 | * Initialise the present map, which describes the set of CPUs |
229 | * actually populated at the present time. | 223 | * actually populated at the present time. |
@@ -239,6 +233,12 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
239 | * WFI | 233 | * WFI |
240 | */ | 234 | */ |
241 | if (max_cpus > 1) { | 235 | if (max_cpus > 1) { |
236 | /* | ||
237 | * Enable the local timer or broadcast device for the | ||
238 | * boot CPU, but only if we have more than one CPU. | ||
239 | */ | ||
240 | percpu_timer_setup(); | ||
241 | |||
242 | scu_enable(); | 242 | scu_enable(); |
243 | poke_milo(); | 243 | poke_milo(); |
244 | } | 244 | } |