diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/timex.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index 2a21485bf183..b589c8218bb9 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -219,18 +219,8 @@ extern long time_reftime; /* time at last adjustment (s) */ | |||
219 | extern long time_adjust; /* The amount of adjtime left */ | 219 | extern long time_adjust; /* The amount of adjtime left */ |
220 | extern long time_next_adjust; /* Value for time_adjust at next tick */ | 220 | extern long time_next_adjust; /* Value for time_adjust at next tick */ |
221 | 221 | ||
222 | /** | 222 | extern void ntp_clear(void); |
223 | * ntp_clear - Clears the NTP state variables | 223 | extern void ntp_update_frequency(void); |
224 | * | ||
225 | * Must be called while holding a write on the xtime_lock | ||
226 | */ | ||
227 | static inline void ntp_clear(void) | ||
228 | { | ||
229 | time_adjust = 0; /* stop active adjtime() */ | ||
230 | time_status |= STA_UNSYNC; | ||
231 | time_maxerror = NTP_PHASE_LIMIT; | ||
232 | time_esterror = NTP_PHASE_LIMIT; | ||
233 | } | ||
234 | 224 | ||
235 | /** | 225 | /** |
236 | * ntp_synced - Returns 1 if the NTP status is not UNSYNC | 226 | * ntp_synced - Returns 1 if the NTP status is not UNSYNC |