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_pfair.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_pfair.c')
-rw-r--r-- | litmus/sched_pfair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/sched_pfair.c b/litmus/sched_pfair.c index f70db914852a..74f7d2a5c4d8 100644 --- a/litmus/sched_pfair.c +++ b/litmus/sched_pfair.c | |||
@@ -1212,7 +1212,7 @@ static int __init init_pfair(void) | |||
1212 | /* initialize CPU state */ | 1212 | /* initialize CPU state */ |
1213 | for (cpu = 0; cpu < num_online_cpus(); cpu++) { | 1213 | for (cpu = 0; cpu < num_online_cpus(); cpu++) { |
1214 | state = &per_cpu(pfair_state, cpu); | 1214 | state = &per_cpu(pfair_state, cpu); |
1215 | hrtimer_init(&state->quantum_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); | 1215 | hrtimer_init(&state->quantum_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); |
1216 | state->quantum_timer.function = on_quantum_boundary; | 1216 | state->quantum_timer.function = on_quantum_boundary; |
1217 | state->topology.id = cpu; | 1217 | state->topology.id = cpu; |
1218 | state->cur_tick = 0; | 1218 | state->cur_tick = 0; |