patch-2.0.34 linux/kernel/time.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Jun 3 15:17:50 1998
- Orig file:
v2.0.33/linux/kernel/time.c
- Orig date:
Tue Dec 2 13:52:33 1997
diff -u --recursive --new-file v2.0.33/linux/kernel/time.c linux/kernel/time.c
@@ -20,6 +20,10 @@
* support for external PPS signal, error checking in adjtimex()
* Updated NTP code according to technical memorandum Jan '96
* "A Kernel Model for Precision Timekeeping" by Dave Mills
+ * 1998-03-05 Ulrich Windl
+ * Allow time_constant larger than MAXTC(6) for NTP v4
+ * (debated with and blessed by Dave Mills, despite of earlier work
+ * and words)
*/
#include <linux/errno.h>
@@ -270,7 +274,7 @@
}
if (txc.modes & ADJ_TIMECONST) { /* p. 24 */
- if (txc.constant < 0 || txc.constant > MAXTC) {
+ if (txc.constant < 0) { /* NTP v4 uses values > 6 */
error = -EINVAL;
goto leave;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov