diff options
Diffstat (limited to 'litmus/sched_psn_edf.c')
-rw-r--r-- | litmus/sched_psn_edf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/sched_psn_edf.c b/litmus/sched_psn_edf.c index 316333460dd9..65c85a3a4c64 100644 --- a/litmus/sched_psn_edf.c +++ b/litmus/sched_psn_edf.c | |||
@@ -61,7 +61,7 @@ static void requeue(struct task_struct* t, rt_domain_t *edf) | |||
61 | TRACE_TASK(t, "requeue: !TASK_RUNNING\n"); | 61 | TRACE_TASK(t, "requeue: !TASK_RUNNING\n"); |
62 | 62 | ||
63 | tsk_rt(t)->completed = 0; | 63 | tsk_rt(t)->completed = 0; |
64 | if (wants_early_release(t) || is_released(t, litmus_clock())) | 64 | if (is_early_releasing(t) || is_released(t, litmus_clock())) |
65 | __add_ready(edf, t); | 65 | __add_ready(edf, t); |
66 | else | 66 | else |
67 | add_release(edf, t); /* it has got to wait */ | 67 | add_release(edf, t); /* it has got to wait */ |
@@ -320,7 +320,7 @@ static void psnedf_task_wake_up(struct task_struct *task) | |||
320 | raw_spin_lock_irqsave(&pedf->slock, flags); | 320 | raw_spin_lock_irqsave(&pedf->slock, flags); |
321 | BUG_ON(is_queued(task)); | 321 | BUG_ON(is_queued(task)); |
322 | now = litmus_clock(); | 322 | now = litmus_clock(); |
323 | if (is_tardy(task, now) | 323 | if (is_sporadic(task) && is_tardy(task, now) |
324 | #ifdef CONFIG_LITMUS_LOCKING | 324 | #ifdef CONFIG_LITMUS_LOCKING |
325 | /* We need to take suspensions because of semaphores into | 325 | /* We need to take suspensions because of semaphores into |
326 | * account! If a job resumes after being suspended due to acquiring | 326 | * account! If a job resumes after being suspended due to acquiring |