clocksource: sun4i: Report the minimum tick that we can program
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 14 Oct 2013 19:07:47 +0000 (21:07 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Oct 2013 20:36:43 +0000 (22:36 +0200)
commit12e1480bcb4920c1b02b3793cb48756497919a60
tree0919507399156a310d951b08e0be95100903bf35
parent71c568c00026f082ca16980e2d9bc506e7d3b145
clocksource: sun4i: Report the minimum tick that we can program

We need to wait for at least 2 clock cycles whenever we reprogram our
clockevent timer. Report that the minimum number of ticks we can handle
is 3 ticks, and remove 3 ticks to the interval programmed to reflect
this.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/sun4i_timer.c