mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
4e8a2372f9
commit
6f4b67b8ff
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ static void sh_tmu_set_next(struct sh_tmu_priv *p, unsigned long delta,
|
|||
if (periodic)
|
||||
sh_tmu_write(p, TCOR, delta);
|
||||
else
|
||||
sh_tmu_write(p, TCOR, 0);
|
||||
sh_tmu_write(p, TCOR, 0xffffffff);
|
||||
|
||||
sh_tmu_write(p, TCNT, delta);
|
||||
|
||||
|
|
Loading…
Reference in a new issue