]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:35 +0000 (11:07 +0200)
commit02ad682a1c3037f9274bd0af1176db42fbca31ba
tree58d2ce0e67cee26b377b13028034a23925e1d997
parent9e9a1b1bfa43f3417205c4816b7dc8f44cbfa6ce
clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue

BugLink: https://bugs.launchpad.net/bugs/1931292
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/clocksource/timer-ti-dm-systimer.c