1
0
Fork 0
alistair23-linux/include/asm-mips/sibyte
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
..
bcm1480_int.h BCM1480 headers 2005-10-29 19:32:45 +01:00
bcm1480_l2c.h BCM1480 headers 2005-10-29 19:32:45 +01:00
bcm1480_mc.h BCM1480 headers 2005-10-29 19:32:45 +01:00
bcm1480_regs.h BCM1480 headers 2005-10-29 19:32:45 +01:00
bcm1480_scd.h BCM1480 headers 2005-10-29 19:32:45 +01:00
bigsur.h Support for BigSur board. 2005-10-29 19:32:47 +01:00
board.h Support for BigSur board. 2005-10-29 19:32:47 +01:00
carmel.h [PATCH] mips: nuke trailing whitespace 2005-09-05 00:06:07 -07:00
sb1250.h [MIPS] Sibyte: Fix race in sb1250_gettimeoffset(). 2006-03-18 16:59:30 +00:00
sb1250_defs.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_dma.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_genbus.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_int.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_l2c.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_ldt.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_mac.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_mc.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_regs.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_scd.h [MIPS] Sibyte: Fix M_SCD_TIMER_INIT and M_SCD_TIMER_CNT wrong field width. 2006-03-18 16:59:29 +00:00
sb1250_smbus.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_syncser.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sb1250_uart.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
sentosa.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
swarm.h Sibyte header cleanup 2005-10-29 19:32:46 +01:00
trace_prof.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00