timekeeping: add CONFIG_LEGACY_TIMER_TICK
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Sep 2020 13:21:43 +0000 (15:21 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 30 Oct 2020 20:57:04 +0000 (21:57 +0100)
commitb3550164a19d62e515af6cacb5a31f0b2b3f9501
tree237ecf1236ea097d572c1021d704933def5bbaeb
parent77f6c0b87479c4578ac0798fc249637092ac45a3
timekeeping: add CONFIG_LEGACY_TIMER_TICK

All platforms that currently do not use generic clockevents roughly call
the same set of functions in their timer interrupts: xtime_update(),
update_process_times() and profile_tick(), sometimes in a different
sequence.

Add a helper function that performs all three of them, to make the
callers more uniform and simplify the interface.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/timekeeping.h
kernel/time/Kconfig
kernel/time/Makefile
kernel/time/tick-legacy.c [new file with mode: 0644]