Commit 09323308 authored by Arnd Bergmann's avatar Arnd Bergmann

m68k: m68328: use legacy_timer_tick()

A couple of machines share the m68328 timer code that
is based on calling timer_interrupt(). Change these
to the new and slightly more generic legacy_timer_tick()
helper.
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 4a1c287a
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#endif #endif
static u32 m68328_tick_cnt; static u32 m68328_tick_cnt;
static irq_handler_t timer_interrupt;
/***************************************************************************/ /***************************************************************************/
...@@ -62,7 +61,8 @@ static irqreturn_t hw_tick(int irq, void *dummy) ...@@ -62,7 +61,8 @@ static irqreturn_t hw_tick(int irq, void *dummy)
TSTAT &= 0; TSTAT &= 0;
m68328_tick_cnt += TICKS_PER_JIFFY; m68328_tick_cnt += TICKS_PER_JIFFY;
return timer_interrupt(irq, dummy); legacy_timer_tick(1);
return IRQ_HANDLED;
} }
/***************************************************************************/ /***************************************************************************/
...@@ -113,7 +113,6 @@ void hw_timer_init(irq_handler_t handler) ...@@ -113,7 +113,6 @@ void hw_timer_init(irq_handler_t handler)
/* Enable timer 1 */ /* Enable timer 1 */
TCTL |= TCTL_TEN; TCTL |= TCTL_TEN;
clocksource_register_hz(&m68328_clk, TICKS_PER_JIFFY*HZ); clocksource_register_hz(&m68328_clk, TICKS_PER_JIFFY*HZ);
timer_interrupt = handler;
} }
/***************************************************************************/ /***************************************************************************/
......
...@@ -104,6 +104,7 @@ config M68060 ...@@ -104,6 +104,7 @@ config M68060
config M68328 config M68328
bool "MC68328" bool "MC68328"
depends on !MMU depends on !MMU
select LEGACY_TIMER_TICK
select M68000 select M68000
help help
Motorola 68328 processor support. Motorola 68328 processor support.
...@@ -111,6 +112,7 @@ config M68328 ...@@ -111,6 +112,7 @@ config M68328
config M68EZ328 config M68EZ328
bool "MC68EZ328" bool "MC68EZ328"
depends on !MMU depends on !MMU
select LEGACY_TIMER_TICK
select M68000 select M68000
help help
Motorola 68EX328 processor support. Motorola 68EX328 processor support.
...@@ -118,6 +120,7 @@ config M68EZ328 ...@@ -118,6 +120,7 @@ config M68EZ328
config M68VZ328 config M68VZ328
bool "MC68VZ328" bool "MC68VZ328"
depends on !MMU depends on !MMU
select LEGACY_TIMER_TICK
select M68000 select M68000
help help
Motorola 68VZ328 processor support. Motorola 68VZ328 processor support.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment