clocksource: improve sh_cmt clocksource overflow handling
authorMagnus Damm <damm@igel.co.jp>
Tue, 28 Apr 2009 08:17:54 +0000 (08:17 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 28 Apr 2009 09:01:21 +0000 (18:01 +0900)
This patch improves the sh_cmt clocksource handling.

Currently the counter value is ignored in the case of
overflow. With this patch the overflow flag is read
before and after reading the counter, removing any
counter value and overflow flag mismatch issues.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found