]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: sh_tmu: Make undefined TCOR behaviour less undefined.
authorShin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
Sun, 21 Jun 2009 10:56:22 +0000 (10:56 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 24 Jun 2009 12:08:11 +0000 (21:08 +0900)
commitdd3d02f52a2e4362e071137b31c4d05c59500177
tree94929a7cd8822d02a27b57fb3ecfaa66ea7aef81
parentad33a64aa6b94d2ec0bf8ac1315f43e23ba5e4de
clocksource: sh_tmu: Make undefined TCOR behaviour less undefined.

Avoid undocumented vague TMU behavior when zero value is set to TCOR.

This primarily fixes up issues encountered under qemu with a zero-length
period, while the hardware itself is fairly ambivalent one way or the
other.

Signed-off-by: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
Acked-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/clocksource/sh_tmu.c