diff options
Diffstat (limited to 'include/linux/hrtimer.h')
| -rw-r--r-- | include/linux/hrtimer.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 3c74f89367c4..0df373bed3d7 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
| @@ -347,10 +347,15 @@ DECLARE_PER_CPU(struct tick_device, tick_cpu_device); | |||
| 347 | /* Initialize timers: */ | 347 | /* Initialize timers: */ |
| 348 | extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, | 348 | extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, |
| 349 | enum hrtimer_mode mode); | 349 | enum hrtimer_mode mode); |
| 350 | extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id, | ||
| 351 | enum hrtimer_mode mode); | ||
| 350 | 352 | ||
| 351 | #ifdef CONFIG_DEBUG_OBJECTS_TIMERS | 353 | #ifdef CONFIG_DEBUG_OBJECTS_TIMERS |
| 352 | extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock, | 354 | extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock, |
| 353 | enum hrtimer_mode mode); | 355 | enum hrtimer_mode mode); |
| 356 | extern void hrtimer_init_sleeper_on_stack(struct hrtimer_sleeper *sl, | ||
| 357 | clockid_t clock_id, | ||
| 358 | enum hrtimer_mode mode); | ||
| 354 | 359 | ||
| 355 | extern void destroy_hrtimer_on_stack(struct hrtimer *timer); | 360 | extern void destroy_hrtimer_on_stack(struct hrtimer *timer); |
| 356 | #else | 361 | #else |
| @@ -360,6 +365,14 @@ static inline void hrtimer_init_on_stack(struct hrtimer *timer, | |||
| 360 | { | 365 | { |
| 361 | hrtimer_init(timer, which_clock, mode); | 366 | hrtimer_init(timer, which_clock, mode); |
| 362 | } | 367 | } |
| 368 | |||
| 369 | static inline void hrtimer_init_sleeper_on_stack(struct hrtimer_sleeper *sl, | ||
| 370 | clockid_t clock_id, | ||
| 371 | enum hrtimer_mode mode) | ||
| 372 | { | ||
| 373 | hrtimer_init_sleeper(sl, clock_id, mode); | ||
| 374 | } | ||
| 375 | |||
| 363 | static inline void destroy_hrtimer_on_stack(struct hrtimer *timer) { } | 376 | static inline void destroy_hrtimer_on_stack(struct hrtimer *timer) { } |
| 364 | #endif | 377 | #endif |
| 365 | 378 | ||
| @@ -463,10 +476,8 @@ extern long hrtimer_nanosleep(const struct timespec64 *rqtp, | |||
| 463 | const enum hrtimer_mode mode, | 476 | const enum hrtimer_mode mode, |
| 464 | const clockid_t clockid); | 477 | const clockid_t clockid); |
| 465 | 478 | ||
| 466 | extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl); | ||
| 467 | |||
| 468 | extern int schedule_hrtimeout_range(ktime_t *expires, u64 delta, | 479 | extern int schedule_hrtimeout_range(ktime_t *expires, u64 delta, |
| 469 | const enum hrtimer_mode mode); | 480 | const enum hrtimer_mode mode); |
| 470 | extern int schedule_hrtimeout_range_clock(ktime_t *expires, | 481 | extern int schedule_hrtimeout_range_clock(ktime_t *expires, |
| 471 | u64 delta, | 482 | u64 delta, |
| 472 | const enum hrtimer_mode mode, | 483 | const enum hrtimer_mode mode, |
