clocksource: sirf: Disable counter before re-setting it
authorHao Liu <Hao.Liu@csr.com>
Sun, 28 Sep 2014 23:50:06 +0000 (01:50 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 28 Sep 2014 23:59:24 +0000 (01:59 +0200)
commit28cf35675a66947b20731f6acbc9d5b131930ce3
tree35e4358623da186f8a3f0253f49c6af162932e19
parent4e2bec0c327025671c1ec2101660e8fea29d9d89
clocksource: sirf: Disable counter before re-setting it

According to HW spec, we have to disable the counter before setting
it, if we don't this, in pressure test, sometimes the timer might
not generate interrupt any more.

And this patch also fixes a typo for register set by changing 0x7
to 0x3. 0x7 is loop mode in HW, but here we are using oneshot 0x3.

Signed-off-by: Hao Liu <Hao.Liu@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-marco.c