patch-2.4.21 linux-2.4.21/arch/m68k/kernel/time.c
Next file: linux-2.4.21/arch/m68k/kernel/traps.c
Previous file: linux-2.4.21/arch/m68k/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/m68k/kernel/time.c
- Orig date:
2001-01-04 13:00:55.000000000 -0800
diff -urN linux-2.4.20/arch/m68k/kernel/time.c linux-2.4.21/arch/m68k/kernel/time.c
@@ -55,28 +55,11 @@
*/
static void timer_interrupt(int irq, void *dummy, struct pt_regs * regs)
{
- /* last time the cmos clock got updated */
- static long last_rtc_update=0;
-
do_timer(regs);
if (!user_mode(regs))
do_profile(regs->pc);
- /*
- * If we have an externally synchronized Linux clock, then update
- * CMOS clock accordingly every ~11 minutes. Set_rtc_mmss() has to be
- * called as close as possible to 500 ms before the new second starts.
- */
- if ((time_status & STA_UNSYNC) == 0 &&
- xtime.tv_sec > last_rtc_update + 660 &&
- xtime.tv_usec >= 500000 - ((unsigned) tick) / 2 &&
- xtime.tv_usec <= 500000 + ((unsigned) tick) / 2) {
- if (set_rtc_mmss(xtime.tv_sec) == 0)
- last_rtc_update = xtime.tv_sec;
- else
- last_rtc_update = xtime.tv_sec - 600; /* do it again in 60 s */
- }
#ifdef CONFIG_HEARTBEAT
/* use power LED as a heartbeat instead -- much more useful
for debugging -- based on the version for PReP by Cort */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)