clocksource: sun4i: Fix bug when switching from periodic to oneshot modes
commit7e14183469d8aa2c7aa7675a6156e7846dda7748
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 16 Jul 2013 14:45:38 +0000 (16 16:45 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 18 Jul 2013 13:27:21 +0000 (18 15:27 +0200)
tree2ce43e7591f668178440cb36c89e41227e68d5ce
parenta2c49e7b553a28f10ab34e5da538ed4a45a697a7
clocksource: sun4i: Fix bug when switching from periodic to oneshot modes

The interval was firing at was set up at probe time, and only changed in
the set_next_event, and never changed back, which is not really what is
expected.

When enabling the periodic mode, now set an interval to tick every
jiffy.

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