diff options
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index b34823755ee4..370096d132d1 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -184,6 +184,8 @@ struct hrtimer_cpu_base { | |||
184 | struct list_head to_pull; | 184 | struct list_head to_pull; |
185 | }; | 185 | }; |
186 | 186 | ||
187 | #ifdef CONFIG_ARCH_HAS_SEND_PULL_TIMERS | ||
188 | |||
187 | #define HRTIMER_START_ON_INACTIVE 0 | 189 | #define HRTIMER_START_ON_INACTIVE 0 |
188 | #define HRTIMER_START_ON_QUEUED 1 | 190 | #define HRTIMER_START_ON_QUEUED 1 |
189 | 191 | ||
@@ -203,6 +205,8 @@ struct hrtimer_start_on_info { | |||
203 | atomic_t state; | 205 | atomic_t state; |
204 | }; | 206 | }; |
205 | 207 | ||
208 | #endif | ||
209 | |||
206 | static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) | 210 | static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) |
207 | { | 211 | { |
208 | timer->_expires = time; | 212 | timer->_expires = time; |
@@ -369,9 +373,11 @@ __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, | |||
369 | unsigned long delta_ns, | 373 | unsigned long delta_ns, |
370 | const enum hrtimer_mode mode, int wakeup); | 374 | const enum hrtimer_mode mode, int wakeup); |
371 | 375 | ||
376 | #ifdef CONFIG_ARCH_HAS_SEND_PULL_TIMERS | ||
372 | extern int hrtimer_start_on(int cpu, struct hrtimer_start_on_info *info, | 377 | extern int hrtimer_start_on(int cpu, struct hrtimer_start_on_info *info, |
373 | struct hrtimer *timer, ktime_t time, | 378 | struct hrtimer *timer, ktime_t time, |
374 | const enum hrtimer_mode mode); | 379 | const enum hrtimer_mode mode); |
380 | #endif | ||
375 | 381 | ||
376 | extern int hrtimer_cancel(struct hrtimer *timer); | 382 | extern int hrtimer_cancel(struct hrtimer *timer); |
377 | extern int hrtimer_try_to_cancel(struct hrtimer *timer); | 383 | extern int hrtimer_try_to_cancel(struct hrtimer *timer); |