diff options
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r-- | arch/arm/kernel/smp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index b8c3d0f689d9..0170e248a1dd 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -429,7 +429,11 @@ static void smp_timer_broadcast(const struct cpumask *mask) | |||
429 | { | 429 | { |
430 | send_ipi_message(mask, IPI_TIMER); | 430 | send_ipi_message(mask, IPI_TIMER); |
431 | } | 431 | } |
432 | #else | ||
433 | #define smp_timer_broadcast NULL | ||
434 | #endif | ||
432 | 435 | ||
436 | #ifndef CONFIG_LOCAL_TIMERS | ||
433 | static void broadcast_timer_set_mode(enum clock_event_mode mode, | 437 | static void broadcast_timer_set_mode(enum clock_event_mode mode, |
434 | struct clock_event_device *evt) | 438 | struct clock_event_device *evt) |
435 | { | 439 | { |
@@ -444,7 +448,6 @@ static void local_timer_setup(struct clock_event_device *evt) | |||
444 | evt->rating = 400; | 448 | evt->rating = 400; |
445 | evt->mult = 1; | 449 | evt->mult = 1; |
446 | evt->set_mode = broadcast_timer_set_mode; | 450 | evt->set_mode = broadcast_timer_set_mode; |
447 | evt->broadcast = smp_timer_broadcast; | ||
448 | 451 | ||
449 | clockevents_register_device(evt); | 452 | clockevents_register_device(evt); |
450 | } | 453 | } |
@@ -456,6 +459,7 @@ void __cpuinit percpu_timer_setup(void) | |||
456 | struct clock_event_device *evt = &per_cpu(percpu_clockevent, cpu); | 459 | struct clock_event_device *evt = &per_cpu(percpu_clockevent, cpu); |
457 | 460 | ||
458 | evt->cpumask = cpumask_of(cpu); | 461 | evt->cpumask = cpumask_of(cpu); |
462 | evt->broadcast = smp_timer_broadcast; | ||
459 | 463 | ||
460 | local_timer_setup(evt); | 464 | local_timer_setup(evt); |
461 | } | 465 | } |