diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-09-24 17:28:53 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-10-30 23:57:05 +0300 |
commit | 275e70e4b9dd4d59639e43fb859d0c953a374752 (patch) | |
tree | fc9af940d317499ccfcdd206a374e53eb850fb9b /arch/m68k/coldfire/timers.c | |
parent | 686092e7daaa9f43396c57ea0044799e47f0d9da (diff) | |
download | linux-275e70e4b9dd4d59639e43fb859d0c953a374752.tar.xz |
m68k: coldfire: use legacy_timer_tick()
Replace the indirect function calls in the timer code
with direct calls to the newly added legacy_timer_tick()
helper for those that have not yet been converted to
generic clockevents.
This makes the timer code a little more self-contained.
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/m68k/coldfire/timers.c')
-rw-r--r-- | arch/m68k/coldfire/timers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/m68k/coldfire/timers.c b/arch/m68k/coldfire/timers.c index b8301fddf901..24b5e2d1b00b 100644 --- a/arch/m68k/coldfire/timers.c +++ b/arch/m68k/coldfire/timers.c @@ -48,8 +48,6 @@ void coldfire_profile_init(void); static u32 mcftmr_cycles_per_jiffy; static u32 mcftmr_cnt; -static irq_handler_t timer_interrupt; - /***************************************************************************/ static void init_timer_irq(void) @@ -77,7 +75,8 @@ static irqreturn_t mcftmr_tick(int irq, void *dummy) __raw_writeb(MCFTIMER_TER_CAP | MCFTIMER_TER_REF, TA(MCFTIMER_TER)); mcftmr_cnt += mcftmr_cycles_per_jiffy; - return timer_interrupt(irq, dummy); + legacy_timer_tick(1); + return IRQ_HANDLED; } /***************************************************************************/ @@ -126,7 +125,6 @@ void hw_timer_init(irq_handler_t handler) clocksource_register_hz(&mcftmr_clk, FREQ); - timer_interrupt = handler; init_timer_irq(); r = request_irq(MCF_IRQ_TIMER, mcftmr_tick, IRQF_TIMER, "timer", NULL); if (r) { |