diff options
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r-- | include/linux/clocksource.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 5ea3c60c160c..c37b21ad5a3b 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -292,6 +292,8 @@ clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 minsec); | |||
292 | */ | 292 | */ |
293 | extern int | 293 | extern int |
294 | __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq); | 294 | __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq); |
295 | extern void | ||
296 | __clocksource_updatefreq_scale(struct clocksource *cs, u32 scale, u32 freq); | ||
295 | 297 | ||
296 | static inline int clocksource_register_hz(struct clocksource *cs, u32 hz) | 298 | static inline int clocksource_register_hz(struct clocksource *cs, u32 hz) |
297 | { | 299 | { |
@@ -303,6 +305,15 @@ static inline int clocksource_register_khz(struct clocksource *cs, u32 khz) | |||
303 | return __clocksource_register_scale(cs, 1000, khz); | 305 | return __clocksource_register_scale(cs, 1000, khz); |
304 | } | 306 | } |
305 | 307 | ||
308 | static inline void __clocksource_updatefreq_hz(struct clocksource *cs, u32 hz) | ||
309 | { | ||
310 | __clocksource_updatefreq_scale(cs, 1, hz); | ||
311 | } | ||
312 | |||
313 | static inline void __clocksource_updatefreq_khz(struct clocksource *cs, u32 khz) | ||
314 | { | ||
315 | __clocksource_updatefreq_scale(cs, 1000, khz); | ||
316 | } | ||
306 | 317 | ||
307 | static inline void | 318 | static inline void |
308 | clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) | 319 | clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) |
@@ -313,11 +324,13 @@ clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) | |||
313 | 324 | ||
314 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL | 325 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL |
315 | extern void | 326 | extern void |
316 | update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult); | 327 | update_vsyscall(struct timespec *ts, struct timespec *wtm, |
328 | struct clocksource *c, u32 mult); | ||
317 | extern void update_vsyscall_tz(void); | 329 | extern void update_vsyscall_tz(void); |
318 | #else | 330 | #else |
319 | static inline void | 331 | static inline void |
320 | update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult) | 332 | update_vsyscall(struct timespec *ts, struct timespec *wtm, |
333 | struct clocksource *c, u32 mult) | ||
321 | { | 334 | { |
322 | } | 335 | } |
323 | 336 | ||