]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Protect more of timer_interrupt() by xtime_lock.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 14 Mar 2006 23:46:58 +0000 (23:46 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 18 Mar 2006 16:59:29 +0000 (16:59 +0000)
commit6aab21291b03295dcfca57f2a4d67bbe4edd3f63
tree2eb5551533165cb7772ffdef3d8cbdbac1050cb6
parentfc36ffae67f02cc4f3c3b68a007b3f16f6375c20
[MIPS] Protect more of timer_interrupt() by xtime_lock.

From Dave Johnson <djohnson+linuxmips@sw.starentnetworks.com>:

* do_timer() expects the arch-specific handler to take the lock as it
  modifies jiffies[_64] and xtime.
* writing timerhi/lo in timer_interrupt() will mess up
  fixed_rate_gettimeoffset() which reads timerhi/lo.

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