diff options
Diffstat (limited to 'arch/blackfin/mach-common/smp.c')
-rw-r--r-- | arch/blackfin/mach-common/smp.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index eddb720c718e..b343ab3764a1 100644 --- a/arch/blackfin/mach-common/smp.c +++ b/arch/blackfin/mach-common/smp.c | |||
@@ -365,9 +365,6 @@ int __cpuinit __cpu_up(unsigned int cpu) | |||
365 | 365 | ||
366 | static void __cpuinit setup_secondary(unsigned int cpu) | 366 | static void __cpuinit setup_secondary(unsigned int cpu) |
367 | { | 367 | { |
368 | #if !defined(CONFIG_TICKSOURCE_GPTMR0) | ||
369 | struct irq_desc *timer_desc; | ||
370 | #endif | ||
371 | unsigned long ilat; | 368 | unsigned long ilat; |
372 | 369 | ||
373 | bfin_write_IMASK(0); | 370 | bfin_write_IMASK(0); |
@@ -382,17 +379,6 @@ static void __cpuinit setup_secondary(unsigned int cpu) | |||
382 | bfin_irq_flags |= IMASK_IVG15 | | 379 | bfin_irq_flags |= IMASK_IVG15 | |
383 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | | 380 | IMASK_IVG14 | IMASK_IVG13 | IMASK_IVG12 | IMASK_IVG11 | |
384 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; | 381 | IMASK_IVG10 | IMASK_IVG9 | IMASK_IVG8 | IMASK_IVG7 | IMASK_IVGHW; |
385 | |||
386 | #if defined(CONFIG_TICKSOURCE_GPTMR0) | ||
387 | /* Power down the core timer, just to play safe. */ | ||
388 | bfin_write_TCNTL(0); | ||
389 | |||
390 | /* system timer0 has been setup by CoreA. */ | ||
391 | #else | ||
392 | timer_desc = irq_desc + IRQ_CORETMR; | ||
393 | setup_core_timer(); | ||
394 | timer_desc->chip->enable(IRQ_CORETMR); | ||
395 | #endif | ||
396 | } | 382 | } |
397 | 383 | ||
398 | void __cpuinit secondary_start_kernel(void) | 384 | void __cpuinit secondary_start_kernel(void) |
@@ -435,6 +421,9 @@ void __cpuinit secondary_start_kernel(void) | |||
435 | 421 | ||
436 | platform_secondary_init(cpu); | 422 | platform_secondary_init(cpu); |
437 | 423 | ||
424 | /* setup local core timer */ | ||
425 | bfin_local_timer_setup(); | ||
426 | |||
438 | local_irq_enable(); | 427 | local_irq_enable(); |
439 | 428 | ||
440 | /* | 429 | /* |