diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 23:11:37 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 23:11:37 -0400 |
commit | c9cfe72ddd9c01575c4bf41403b2df5b1a5468a6 (patch) | |
tree | db76faa3a9f3ff15414c8e6b349f36b86b36dcb8 | |
parent | 36cc4f1cd40fb3ce418f76f1496fb0c9bdff2520 (diff) |
Removed some comments. Things may indeed be working now.
-rw-r--r-- | kernel/sched_gsn_edf.c | 2 | ||||
-rw-r--r-- | lib/semaphore-sleepers.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched_gsn_edf.c b/kernel/sched_gsn_edf.c index ef8cb04713..56b7941cae 100644 --- a/kernel/sched_gsn_edf.c +++ b/kernel/sched_gsn_edf.c | |||
@@ -593,7 +593,7 @@ static noinline long gsnedf_handle_priority_change(struct task_struct *t) | |||
593 | queue_lock_irqsave(&gsnedf_lock, flags); | 593 | queue_lock_irqsave(&gsnedf_lock, flags); |
594 | 594 | ||
595 | /* debug: a task can only unlink and reschedule itself! */ | 595 | /* debug: a task can only unlink and reschedule itself! */ |
596 | if (t && t == current) { | 596 | if (t /*&& t == current*/) { |
597 | unlink(t); | 597 | unlink(t); |
598 | gsnedf_job_arrival(t); /* requeue/link as appropriate */ | 598 | gsnedf_job_arrival(t); /* requeue/link as appropriate */ |
599 | } | 599 | } |
diff --git a/lib/semaphore-sleepers.c b/lib/semaphore-sleepers.c index 60421d2bef..32f8cc4bfa 100644 --- a/lib/semaphore-sleepers.c +++ b/lib/semaphore-sleepers.c | |||
@@ -188,7 +188,6 @@ fastcall void __sched __pi_down(struct pi_semaphore * sem) | |||
188 | DECLARE_WAITQUEUE(wait, tsk); | 188 | DECLARE_WAITQUEUE(wait, tsk); |
189 | unsigned long flags; | 189 | unsigned long flags; |
190 | 190 | ||
191 | // tsk->state = TASK_UNINTERRUPTIBLE; | ||
192 | spin_lock_irqsave(&sem->wait.lock, flags); | 191 | spin_lock_irqsave(&sem->wait.lock, flags); |
193 | add_wait_queue_exclusive_locked(&sem->wait, &wait); | 192 | add_wait_queue_exclusive_locked(&sem->wait, &wait); |
194 | 193 | ||
@@ -217,7 +216,6 @@ fastcall void __sched __pi_down(struct pi_semaphore * sem) | |||
217 | schedule(); | 216 | schedule(); |
218 | 217 | ||
219 | spin_lock_irqsave(&sem->wait.lock, flags); | 218 | spin_lock_irqsave(&sem->wait.lock, flags); |
220 | // tsk->state = TASK_UNINTERRUPTIBLE; | ||
221 | } | 219 | } |
222 | remove_wait_queue_locked(&sem->wait, &wait); | 220 | remove_wait_queue_locked(&sem->wait, &wait); |
223 | 221 | ||