patch-2.4.22 linux-2.4.22/arch/mips/kernel/sysirix.c

Next file: linux-2.4.22/arch/mips/kernel/sysmips.c
Previous file: linux-2.4.22/arch/mips/kernel/syscalls.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/mips/kernel/sysirix.c linux-2.4.22/arch/mips/kernel/sysirix.c
@@ -624,8 +624,10 @@
 	write_lock_irq(&xtime_lock);
 	xtime.tv_sec = value;
 	xtime.tv_usec = 0;
-	time_maxerror = MAXPHASE;
-	time_esterror = MAXPHASE;
+	time_adjust = 0;			/* stop active adjtime() */
+	time_status |= STA_UNSYNC;
+	time_maxerror = NTP_PHASE_LIMIT;
+	time_esterror = NTP_PHASE_LIMIT;
 	write_unlock_irq(&xtime_lock);
 
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)