]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 14:15:54 +0000 (16:15 +0200)
commit3efe7a878a11c13b5297057bfc1e5639ce1241ce
tree52314faaa12d051f8b85b15c7bd0560a62863e94
parent397dc6f7ca3c858dc95800f299357311ccf679e6
clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue

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
drivers/clocksource/timer-ti-dm-systimer.c