]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Sibyte: Stop timers before programming next even.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 11 Nov 2007 17:33:55 +0000 (17:33 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 15 Nov 2007 23:21:50 +0000 (23:21 +0000)
commitf69de47b208f112110e26a30277362590313d5dd
tree823c790dff8619a3671c1a8a19671e020b9b4e2d
parent2a577b653e79045e5d1d4d5b00b688b253e6ea08
[MIPS] Sibyte: Stop timers before programming next even.

We have no guarantee by the generic time code that the timer is stopped
when the ->next_event method is called.  Modifying the Timer Initial Count
register while the timer is enabled has UNPREDICTABLE effect according to
the BCM1250/BCM1125/BCM1125H User Manual.  So stop the timer before
reprogramming.

This is a paranoia fix; no ill effects have been observed previously.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cevt-bcm1480.c
arch/mips/kernel/cevt-sb1250.c