patch-1.3.96 linux/kernel/time.c

Next file: linux/mm/filemap.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/kernel/time.c linux/kernel/time.c
@@ -75,9 +75,9 @@
 	cli();
 	xtime.tv_sec = value;
 	xtime.tv_usec = 0;
-	time_state = TIME_BAD;
-	time_maxerror = 0x70000000;
-	time_esterror = 0x70000000;
+	time_state = TIME_ERROR;
+	time_maxerror = MAXPHASE;
+	time_esterror = MAXPHASE;
 	sti();
 	return 0;
 }
@@ -317,7 +317,7 @@
 		    time_freq = time_tolerance;
 		  else if (time_freq < -time_tolerance)
 		    time_freq = -time_tolerance;
-		}
+		} /* STA_PLL || STA_PPSTIME */
 	    if (txc.modes & ADJ_TICK)
 	      tick = txc.tick;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this