diff options
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r-- | litmus/sched_cedf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index a729d97535e9..615560f21d60 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #include <litmus/litmus.h> | 35 | #include <litmus/litmus.h> |
36 | #include <litmus/jobs.h> | 36 | #include <litmus/jobs.h> |
37 | #include <litmus/preempt.h> | ||
37 | #include <litmus/sched_plugin.h> | 38 | #include <litmus/sched_plugin.h> |
38 | #include <litmus/edf_common.h> | 39 | #include <litmus/edf_common.h> |
39 | #include <litmus/sched_trace.h> | 40 | #include <litmus/sched_trace.h> |
@@ -341,7 +342,7 @@ static void cedf_tick(struct task_struct* t) | |||
341 | /* np tasks will be preempted when they become | 342 | /* np tasks will be preempted when they become |
342 | * preemptable again | 343 | * preemptable again |
343 | */ | 344 | */ |
344 | set_tsk_need_resched(t); | 345 | litmus_reschedule_local(); |
345 | set_will_schedule(); | 346 | set_will_schedule(); |
346 | TRACE("cedf_scheduler_tick: " | 347 | TRACE("cedf_scheduler_tick: " |
347 | "%d is preemptable " | 348 | "%d is preemptable " |
@@ -466,6 +467,7 @@ static struct task_struct* cedf_schedule(struct task_struct * prev) | |||
466 | if (exists) | 467 | if (exists) |
467 | next = prev; | 468 | next = prev; |
468 | 469 | ||
470 | sched_state_task_picked(); | ||
469 | raw_spin_unlock(&cluster->lock); | 471 | raw_spin_unlock(&cluster->lock); |
470 | 472 | ||
471 | #ifdef WANT_ALL_SCHED_EVENTS | 473 | #ifdef WANT_ALL_SCHED_EVENTS |