diff options
author | leochanj105 <43393724+leochanj105@users.noreply.github.com> | 2020-11-09 14:02:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 14:02:21 -0500 |
commit | 3713d99f4b6a1fe6ec3bdf75ee67bf378ab325b0 (patch) | |
tree | 51f5c332e75a5a2846344afccd2a8219b3dfde23 /litmus/sched_pres.c | |
parent | e0ce4a455f9cdb311e27a08f8a59b4b613de5703 (diff) |
Switch to HRTIMER_MODE_ABS_PINNED_HARD5.4-EXT-RES
Scheduling timers need to expire in a hard IRQ context which must be explicitly requested with Linux 5.4.
Diffstat (limited to 'litmus/sched_pres.c')
-rw-r--r-- | litmus/sched_pres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/sched_pres.c b/litmus/sched_pres.c index dae65e376bd4..82644a18c147 100644 --- a/litmus/sched_pres.c +++ b/litmus/sched_pres.c | |||
@@ -98,7 +98,7 @@ static void pres_update_timer_and_unlock(struct pres_cpu_state *state) | |||
98 | TRACE("setting scheduler timer for %llu\n", update); | 98 | TRACE("setting scheduler timer for %llu\n", update); |
99 | hrtimer_start(&state->timer, | 99 | hrtimer_start(&state->timer, |
100 | ns_to_ktime(update), | 100 | ns_to_ktime(update), |
101 | HRTIMER_MODE_ABS_PINNED); | 101 | HRTIMER_MODE_ABS_PINNED_HARD); |
102 | if (update < litmus_clock()) { | 102 | if (update < litmus_clock()) { |
103 | /* uh oh, timer expired while trying to set it */ | 103 | /* uh oh, timer expired while trying to set it */ |
104 | TRACE("timer expired during setting " | 104 | TRACE("timer expired during setting " |
@@ -545,7 +545,7 @@ static long pres_activate_plugin(void) | |||
545 | 545 | ||
546 | sup_init(&state->sup_env); | 546 | sup_init(&state->sup_env); |
547 | 547 | ||
548 | hrtimer_init(&state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); | 548 | hrtimer_init(&state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); |
549 | state->timer.function = on_scheduling_timer; | 549 | state->timer.function = on_scheduling_timer; |
550 | } | 550 | } |
551 | 551 | ||