diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-09-24 17:40:58 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-10-30 23:57:06 +0300 |
commit | 4a1c287aabba8b3a8efbfb2381d95c38470ed171 (patch) | |
tree | db04e38bf3cbb0ee3a85b16316b601aa292a1959 /arch/m68k/sun3x | |
parent | d6444094042b4f4b4623dc1a2437f61309b9b34b (diff) | |
download | linux-4a1c287aabba8b3a8efbfb2381d95c38470ed171.tar.xz |
m68k: sun3/sun3c: use legacy_timer_tick
These two are different from all other machines:
* sun3 does not call timer_routine() but open-codes it
except for the profile_tick() call that appears to
be unintentionally missing.
* sun3x has a commented-out timer irq handler but no
functional timer tick I could find.
Change both to calling the new legacy_timer_tick here,
which includes the call to profile_tick() but does not
fix sun3x as that is still commented out.
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/m68k/sun3x')
-rw-r--r-- | arch/m68k/sun3x/time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/m68k/sun3x/time.c b/arch/m68k/sun3x/time.c index 9163294b0fb6..f6e25fdc008c 100644 --- a/arch/m68k/sun3x/time.c +++ b/arch/m68k/sun3x/time.c @@ -77,14 +77,13 @@ int sun3x_hwclk(int set, struct rtc_time *t) #if 0 static irqreturn_t sun3x_timer_tick(int irq, void *dev_id) { - irq_handler_t timer_routine = dev_id; unsigned long flags; local_irq_save(flags); /* Clear the pending interrupt - pulse the enable line low */ disable_irq(5); enable_irq(5); - timer_routine(0, NULL); + legacy_timer_tick(1); local_irq_restore(flags); return IRQ_HANDLED; |