]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/tegra: Set up maximum-ticks limit properly
authorDmitry Osipenko <digetx@gmail.com>
Tue, 18 Jun 2019 14:03:58 +0000 (17:03 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Jun 2019 17:49:18 +0000 (19:49 +0200)
commite145670068160707eb4994af3bb92c2cef79b50f
tree945d60aaf7c0f3eab4640c92ff49b2f3f86ced43
parentd5d15b7ad7fa02a8ee04f0df4a4dd301357ef100
clocksource/drivers/tegra: Set up maximum-ticks limit properly

Tegra's timer has 29 bits for the counter and for the "load" register
which sets counter to a load-value. The counter's value is lower than
the actual value by 1 because it starts to decrement after one tick,
hence the maximum number of ticks that hardware can handle equals to
29 bits + 1.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-tegra.c