aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_gsn_edf.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_gsn_edf.c')
-rw-r--r--litmus/sched_gsn_edf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index c5c9600c33d8..08b8847ede97 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -776,8 +776,6 @@ int gsnedf_fmlp_lock(struct litmus_lock* l)
776 * ->owner. We can thus check it without acquiring the spin 776 * ->owner. We can thus check it without acquiring the spin
777 * lock. */ 777 * lock. */
778 BUG_ON(sem->owner != t); 778 BUG_ON(sem->owner != t);
779
780 remove_wait_queue(&sem->wait, &wait);
781 } else { 779 } else {
782 /* it's ours now */ 780 /* it's ours now */
783 sem->owner = t; 781 sem->owner = t;
@@ -803,7 +801,7 @@ int gsnedf_fmlp_unlock(struct litmus_lock* l)
803 } 801 }
804 802
805 /* check if there are jobs waiting for this resource */ 803 /* check if there are jobs waiting for this resource */
806 next = waitqueue_first(&sem->wait); 804 next = __waitqueue_remove_first(&sem->wait);
807 if (next) { 805 if (next) {
808 /* next becomes the resouce holder */ 806 /* next becomes the resouce holder */
809 sem->owner = next; 807 sem->owner = next;