Skip to content

Commit

Permalink
msm: timer: Tighten #ifdef for local timer support
Browse files Browse the repository at this point in the history
It is more correct to only define the local timer support code
when CONFIG_LOCAL_TIMERS=y.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
  • Loading branch information
Stephen Boyd authored and David Brown committed Nov 10, 2011
1 parent 1ea6b8f commit 2852cca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/arm/mach-msm/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static void __init msm_timer_init(void)
}
}

#ifdef CONFIG_SMP
#ifdef CONFIG_LOCAL_TIMERS
int __cpuinit local_timer_setup(struct clock_event_device *evt)
{
static bool local_timer_inited;
Expand Down Expand Up @@ -321,8 +321,7 @@ void local_timer_stop(struct clock_event_device *evt)
evt->set_mode(CLOCK_EVT_MODE_UNUSED, evt);
disable_percpu_irq(evt->irq);
}

#endif
#endif /* CONFIG_LOCAL_TIMERS */

struct sys_timer msm_timer = {
.init = msm_timer_init
Expand Down

0 comments on commit 2852cca

Please sign in to comment.