kernel-ark/arch/mips
Ralf Baechle a904f74785 [MIPS] Sibyte: Fix race in sb1250_gettimeoffset().
From Dave Johnson <djohnson+linuxmips@sw.starentnetworks.com>:
    
sb1250_gettimeoffset() simply reads the current cpu 0 timer remaining
value, however once this counter reaches 0 and the interrupt is raised,
it immediately resets and begins to count down again.
    
If sb1250_gettimeoffset() is called on cpu 1 via do_gettimeofday() after
the timer has reset but prior to cpu 0 processing the interrupt and
taking write_seqlock() in timer_interrupt() it will return a full value
(or close to it) causing time to jump backwards 1ms. Once cpu 0 handles
the interrupt and timer_interrupt() gets far enough along it will jump
forward 1ms.
    
Fix this problem by implementing mips_hpt_*() on sb1250 using a spare
timer unrelated to the existing periodic interrupt timers. It runs at
1Mhz with a full 23bit counter.  This eliminated the custom
do_gettimeoffset() for sb1250 and allowed use of the generic
fixed_rate_gettimeoffset() using mips_hpt_*() and timerhi/timerlo.
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2006-03-18 16:59:30 +00:00
..
arc [MIPS] Get rid of the IP22-specific code in arclib. 2006-03-18 16:59:26 +00:00
au1000 [MIPS] Simple patch to power off DBAU1200 2006-03-18 16:59:28 +00:00
boot
cobalt
configs
ddb5xxx
dec
galileo-boards/ev96100
gt64120
ite-boards
jazz
jmr3927
kernel [MIPS] Protect more of timer_interrupt() by xtime_lock. 2006-03-18 16:59:29 +00:00
lasat
lib
lib-32
lib-64
math-emu
mips-boards
mm [MIPS] local_r4k_flush_cache_page fix 2006-03-18 16:59:27 +00:00
momentum [MIPS] Momentum: Resurrect after things were moved around a while ago. 2006-03-09 18:05:09 +00:00
oprofile
pci [MIPS] Momentum: Resurrect after things were moved around a while ago. 2006-03-09 18:05:09 +00:00
philips/pnx8550
pmc-sierra
qemu
sgi-ip22
sgi-ip27
sgi-ip32
sibyte [MIPS] Sibyte: Fix race in sb1250_gettimeoffset(). 2006-03-18 16:59:30 +00:00
sni
tx4927
tx4938
vr41xx
defconfig
Kconfig [MIPS] Enable highmem for all MIPS32 and MIPS64 processors. 2006-03-09 18:05:08 +00:00
Kconfig.debug
Makefile [MIPS] Always pass -msoft-float. 2006-03-09 18:05:10 +00:00