diff options
Diffstat (limited to 'include/linux/timex.h')
-rw-r--r-- | include/linux/timex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index 7715b4c0caf9..671609ee1a3d 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -91,10 +91,12 @@ | |||
91 | #define SHIFT_SCALE 22 /* phase scale (shift) */ | 91 | #define SHIFT_SCALE 22 /* phase scale (shift) */ |
92 | #define SHIFT_UPDATE (SHIFT_HZ + 1) /* time offset scale (shift) */ | 92 | #define SHIFT_UPDATE (SHIFT_HZ + 1) /* time offset scale (shift) */ |
93 | #define SHIFT_USEC 16 /* frequency offset scale (shift) */ | 93 | #define SHIFT_USEC 16 /* frequency offset scale (shift) */ |
94 | #define SHIFT_NSEC 12 /* kernel frequency offset scale */ | ||
94 | #define FINENSEC (1L << (SHIFT_SCALE - 10)) /* ~1 ns in phase units */ | 95 | #define FINENSEC (1L << (SHIFT_SCALE - 10)) /* ~1 ns in phase units */ |
95 | 96 | ||
96 | #define MAXPHASE 512000L /* max phase error (us) */ | 97 | #define MAXPHASE 512000L /* max phase error (us) */ |
97 | #define MAXFREQ (512L << SHIFT_USEC) /* max frequency error (ppm) */ | 98 | #define MAXFREQ (512L << SHIFT_USEC) /* max frequency error (ppm) */ |
99 | #define MAXFREQ_NSEC (512000L << SHIFT_NSEC) /* max frequency error (ppb) */ | ||
98 | #define MINSEC 16L /* min interval between updates (s) */ | 100 | #define MINSEC 16L /* min interval between updates (s) */ |
99 | #define MAXSEC 1200L /* max interval between updates (s) */ | 101 | #define MAXSEC 1200L /* max interval between updates (s) */ |
100 | #define NTP_PHASE_LIMIT (MAXPHASE << 5) /* beyond max. dispersion */ | 102 | #define NTP_PHASE_LIMIT (MAXPHASE << 5) /* beyond max. dispersion */ |