diff options
author | Pratyush Patel <pratyushpatel.1995@gmail.com> | 2016-02-09 04:58:11 -0500 |
---|---|---|
committer | Pratyush Patel <pratyushpatel.1995@gmail.com> | 2016-02-09 04:58:11 -0500 |
commit | d2bdf416c9c9f5d204bc218a7a36a55605aef89c (patch) | |
tree | c91470be6dc919660aa415ab300f5a4614ed4190 /include/litmus/litmus.h | |
parent | ce90c1d314b15359d0595918c7dfa0ec1f5b9bb6 (diff) |
Revamped hrtimer_start_on() support
This patch modifies the previous implementation of hrtimer_start_on() by
now using smp_call_function_single_async() to arm hrtimers on remote
CPU's.
Diffstat (limited to 'include/litmus/litmus.h')
-rw-r--r-- | include/litmus/litmus.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index a6eb534ee0fa..c3a52aea60fb 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -319,4 +319,27 @@ static inline int has_control_page(struct task_struct* t) | |||
319 | 319 | ||
320 | #endif | 320 | #endif |
321 | 321 | ||
322 | #ifdef CONFIG_SMP | ||
323 | |||
324 | /* | ||
325 | * struct hrtimer_start_on_info - timer info on remote cpu | ||
326 | * @timer: timer to be triggered on remote cpu | ||
327 | * @time: time event | ||
328 | * @mode: timer mode | ||
329 | * @csd: smp_call_function parameter to call hrtimer_pull on remote cpu | ||
330 | */ | ||
331 | struct hrtimer_start_on_info { | ||
332 | struct hrtimer *timer; | ||
333 | ktime_t time; | ||
334 | enum hrtimer_mode mode; | ||
335 | struct call_single_data csd; | ||
336 | }; | ||
337 | |||
338 | void hrtimer_pull(void *csd_info); | ||
339 | extern void hrtimer_start_on(int cpu, struct hrtimer_start_on_info *info, | ||
340 | struct hrtimer *timer, ktime_t time, | ||
341 | const enum hrtimer_mode mode); | ||
342 | |||
343 | #endif | ||
344 | |||
322 | #endif | 345 | #endif |