diff options
Diffstat (limited to 'include/linux/timex.h')
| -rw-r--r-- | include/linux/timex.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index aa60fe7b6ed6..b75e1864ed19 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
| @@ -234,23 +234,9 @@ struct timex { | |||
| 234 | extern unsigned long tick_usec; /* USER_HZ period (usec) */ | 234 | extern unsigned long tick_usec; /* USER_HZ period (usec) */ |
| 235 | extern unsigned long tick_nsec; /* ACTHZ period (nsec) */ | 235 | extern unsigned long tick_nsec; /* ACTHZ period (nsec) */ |
| 236 | 236 | ||
| 237 | /* | ||
| 238 | * phase-lock loop variables | ||
| 239 | */ | ||
| 240 | extern int time_status; /* clock synchronization status bits */ | ||
| 241 | |||
| 242 | extern void ntp_init(void); | 237 | extern void ntp_init(void); |
| 243 | extern void ntp_clear(void); | 238 | extern void ntp_clear(void); |
| 244 | 239 | ||
| 245 | /** | ||
| 246 | * ntp_synced - Returns 1 if the NTP status is not UNSYNC | ||
| 247 | * | ||
| 248 | */ | ||
| 249 | static inline int ntp_synced(void) | ||
| 250 | { | ||
| 251 | return !(time_status & STA_UNSYNC); | ||
| 252 | } | ||
| 253 | |||
| 254 | /* Required to safely shift negative values */ | 240 | /* Required to safely shift negative values */ |
| 255 | #define shift_right(x, s) ({ \ | 241 | #define shift_right(x, s) ({ \ |
| 256 | __typeof__(x) __x = (x); \ | 242 | __typeof__(x) __x = (x); \ |
| @@ -264,10 +250,9 @@ static inline int ntp_synced(void) | |||
| 264 | #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) | 250 | #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) |
| 265 | 251 | ||
| 266 | /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */ | 252 | /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */ |
| 267 | extern u64 tick_length; | 253 | extern u64 ntp_tick_length(void); |
| 268 | 254 | ||
| 269 | extern void second_overflow(void); | 255 | extern void second_overflow(void); |
| 270 | extern void update_ntp_one_tick(void); | ||
| 271 | extern int do_adjtimex(struct timex *); | 256 | extern int do_adjtimex(struct timex *); |
| 272 | extern void hardpps(const struct timespec *, const struct timespec *); | 257 | extern void hardpps(const struct timespec *, const struct timespec *); |
| 273 | 258 | ||
