diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-09-24 16:37:37 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-10-30 21:57:05 +0100 |
commit | d6444094042b4f4b4623dc1a2437f61309b9b34b (patch) | |
tree | 0ffc5fc790b78e17fda3efb60976c293a20406ce /arch/m68k/include/asm/machdep.h | |
parent | m68k: coldfire: use legacy_timer_tick() (diff) | |
download | linux-d6444094042b4f4b4623dc1a2437f61309b9b34b.tar.xz linux-d6444094042b4f4b4623dc1a2437f61309b9b34b.zip |
m68k: split heartbeat out of timer function
The heartbeat functionality is mostly separate from the
actual timer interrupt handling, and it is only used on
five platforms.
Split it out into a separate function and call that directly
from the timer irq on those platforms.
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-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/include/asm/machdep.h')
-rw-r--r-- | arch/m68k/include/asm/machdep.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/machdep.h b/arch/m68k/include/asm/machdep.h index 49bd3266b4b1..e62a39d01ae4 100644 --- a/arch/m68k/include/asm/machdep.h +++ b/arch/m68k/include/asm/machdep.h @@ -35,6 +35,13 @@ extern void (*mach_beep) (unsigned int, unsigned int); /* Hardware clock functions */ extern void hw_timer_init(irq_handler_t handler); extern unsigned long hw_timer_offset(void); +#ifdef CONFIG_HEARTBEAT +extern void timer_heartbeat(void); +#else +static inline void timer_heartbeat(void) +{ +} +#endif extern void config_BSP(char *command, int len); |