patch-1.3.37 linux/kernel/sched.c
Next file: linux/kernel/signal.c
Previous file: linux/kernel/printk.c
Back to the patch index
Back to the overall index
-  Lines: 14
 -  Date:
Tue Oct 24 16:19:42 1995
 -  Orig file: 
v1.3.36/linux/kernel/sched.c
 -  Orig date: 
Mon Oct 23 18:02:19 1995
 
diff -u --recursive --new-file v1.3.36/linux/kernel/sched.c linux/kernel/sched.c
@@ -654,11 +654,13 @@
 	time_adj += ltemp >>
 	    (SHIFT_USEC + SHIFT_HZ - SHIFT_SCALE);
 
+#if HZ == 100
     /* compensate for (HZ==100) != 128. Add 25% to get 125; => only 3% error */
     if (time_adj < 0)
 	time_adj -= -time_adj >> 2;
     else
 	time_adj += time_adj >> 2;
+#endif
 }
 
 /*
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