clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue
authorTony Lindgren <tony@atomide.com>
Tue, 23 Mar 2021 07:43:25 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:13:17 +0000 (10:13 +0200)
commit06470de53e4f95fd8f2e608115dbac440ccf9007
tree95f5479419a38abe47e713394ac71c46586d93f9
parent462049cfb342c4f5e8344452a205207fc5575f1b
clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue

commit 3efe7a878a11c13b5297057bfc1e5639ce1241ce upstream.

There is a timer wrap issue on dra7 for the ARM architected timer.
In a typical clock configuration the timer fails to wrap after 388 days.

To work around the issue, we need to use timer-ti-dm timers instead.

Let's prepare for adding support for percpu timers by adding a common
dmtimer_clkevt_init_common() and call it from dmtimer_clockevent_init().
This patch makes no intentional functional changes.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210323074326.28302-2-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clocksource/timer-ti-dm-systimer.c