]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:56 +0000 (10:29 +0200)
commitd4a976a27a48343e691135aad74cb7bde2cf0ddf
treebb4b13bf16493aa1fc6fe0ff2ee75c71b25c63b0
parent6470518351f49f55a7c5919934c7163b6ab47b83
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