diff options
Diffstat (limited to 'include/linux/timex.h')
-rw-r--r-- | include/linux/timex.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index ac808f13fa0e..261381b5da82 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -74,24 +74,17 @@ | |||
74 | #define MAXTC 10 /* maximum time constant (shift) */ | 74 | #define MAXTC 10 /* maximum time constant (shift) */ |
75 | 75 | ||
76 | /* | 76 | /* |
77 | * The SHIFT_SCALE define establishes the decimal point of the time_phase | 77 | * The SHIFT_UPDATE define establishes the decimal point of the |
78 | * variable which serves as an extension to the low-order bits of the | 78 | * time_offset variable which represents the current offset with |
79 | * system clock variable. The SHIFT_UPDATE define establishes the decimal | 79 | * respect to standard time. |
80 | * point of the time_offset variable which represents the current offset | ||
81 | * with respect to standard time. The FINENSEC define represents 1 nsec in | ||
82 | * scaled units. | ||
83 | * | 80 | * |
84 | * SHIFT_USEC defines the scaling (shift) of the time_freq and | 81 | * SHIFT_USEC defines the scaling (shift) of the time_freq and |
85 | * time_tolerance variables, which represent the current frequency | 82 | * time_tolerance variables, which represent the current frequency |
86 | * offset and maximum frequency tolerance. | 83 | * offset and maximum frequency tolerance. |
87 | * | ||
88 | * FINENSEC is 1 ns in SHIFT_UPDATE units of the time_phase variable. | ||
89 | */ | 84 | */ |
90 | #define SHIFT_SCALE 22 /* phase scale (shift) */ | ||
91 | #define SHIFT_UPDATE (SHIFT_HZ + 1) /* time offset scale (shift) */ | 85 | #define SHIFT_UPDATE (SHIFT_HZ + 1) /* time offset scale (shift) */ |
92 | #define SHIFT_USEC 16 /* frequency offset scale (shift) */ | 86 | #define SHIFT_USEC 16 /* frequency offset scale (shift) */ |
93 | #define SHIFT_NSEC 12 /* kernel frequency offset scale */ | 87 | #define SHIFT_NSEC 12 /* kernel frequency offset scale */ |
94 | #define FINENSEC (1L << (SHIFT_SCALE - 10)) /* ~1 ns in phase units */ | ||
95 | 88 | ||
96 | #define MAXPHASE 512000L /* max phase error (us) */ | 89 | #define MAXPHASE 512000L /* max phase error (us) */ |
97 | #define MAXFREQ (512L << SHIFT_USEC) /* max frequency error (ppm) */ | 90 | #define MAXFREQ (512L << SHIFT_USEC) /* max frequency error (ppm) */ |