diff options
Diffstat (limited to 'litmus/sched_psn_edf.c')
-rw-r--r-- | litmus/sched_psn_edf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/litmus/sched_psn_edf.c b/litmus/sched_psn_edf.c index abb06fa53e3a..71c02409efa2 100644 --- a/litmus/sched_psn_edf.c +++ b/litmus/sched_psn_edf.c | |||
@@ -442,10 +442,6 @@ int psnedf_fmlp_lock(struct litmus_lock* l) | |||
442 | * ->owner. We can thus check it without acquiring the spin | 442 | * ->owner. We can thus check it without acquiring the spin |
443 | * lock. */ | 443 | * lock. */ |
444 | BUG_ON(sem->owner != t); | 444 | BUG_ON(sem->owner != t); |
445 | |||
446 | /* FIXME: could we punt the dequeuing to the previous job, | ||
447 | * which is holding the spinlock anyway? */ | ||
448 | remove_wait_queue(&sem->wait, &wait); | ||
449 | } else { | 445 | } else { |
450 | /* it's ours now */ | 446 | /* it's ours now */ |
451 | sem->owner = t; | 447 | sem->owner = t; |
@@ -478,7 +474,7 @@ int psnedf_fmlp_unlock(struct litmus_lock* l) | |||
478 | unboost_priority(t); | 474 | unboost_priority(t); |
479 | 475 | ||
480 | /* check if there are jobs waiting for this resource */ | 476 | /* check if there are jobs waiting for this resource */ |
481 | next = waitqueue_first(&sem->wait); | 477 | next = __waitqueue_remove_first(&sem->wait); |
482 | if (next) { | 478 | if (next) { |
483 | /* boost next job */ | 479 | /* boost next job */ |
484 | boost_priority(next); | 480 | boost_priority(next); |