patch-2.2.4 linux/arch/mips/sgi/kernel/indy_timer.c
Next file: linux/arch/ppc/8xx_io/commproc.c
Previous file: linux/arch/mips/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Mar 11 23:25:24 1999
- Orig file:
v2.2.3/linux/arch/mips/sgi/kernel/indy_timer.c
- Orig date:
Fri Oct 23 22:01:20 1998
diff -u --recursive --new-file v2.2.3/linux/arch/mips/sgi/kernel/indy_timer.c linux/arch/mips/sgi/kernel/indy_timer.c
@@ -104,9 +104,10 @@
* absolutely sure we do this update within 500ms before the
* next second starts, thus the following code.
*/
- if (time_state != TIME_BAD && xtime.tv_sec > last_rtc_update + 660 &&
- xtime.tv_usec > 500000 - (tick >> 1) &&
- xtime.tv_usec < 500000 + (tick >> 1))
+ if ((time_status & STA_UNSYNC) == 0 &&
+ xtime.tv_sec > last_rtc_update + 660 &&
+ xtime.tv_usec >= 500000 - (tick >> 1) &&
+ xtime.tv_usec <= 500000 + (tick >> 1))
if (set_rtc_mmss(xtime.tv_sec) == 0)
last_rtc_update = xtime.tv_sec;
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)