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

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>
drivers/clocksource/sh_cmt.c