patch-2.4.0-test11 linux/arch/sparc/kernel/semaphore.c
Next file: linux/arch/sparc/mm/init.c
Previous file: linux/arch/sparc/kernel/pcic.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sat Nov 11 19:02:40 2000
- Orig file:
v2.4.0-test10/linux/arch/sparc/kernel/semaphore.c
- Orig date:
Tue Oct 31 12:42:26 2000
diff -u --recursive --new-file v2.4.0-test10/linux/arch/sparc/kernel/semaphore.c linux/arch/sparc/kernel/semaphore.c
@@ -1,4 +1,4 @@
-/* $Id: semaphore.c,v 1.3 2000/10/14 10:09:00 davem Exp $
+/* $Id: semaphore.c,v 1.4 2000/11/10 04:02:03 davem Exp $
* Generic semaphore code. Buyer beware. Do your own
* specific changes in <asm/semaphore-helper.h>
*/
@@ -166,7 +166,7 @@
for (;;) {
if (!ldstub(&sem->write_not_granted))
break;
- set_task_state(tsk, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
+ set_task_state(tsk, TASK_UNINTERRUPTIBLE);
if (sem->write_not_granted)
schedule();
}
@@ -216,7 +216,7 @@
add_wait_queue_exclusive(&sem->wait, &wait);
while (sem->count < 0) {
- set_task_state(tsk, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
+ set_task_state(tsk, TASK_UNINTERRUPTIBLE);
if (sem->count >= 0)
break; /* we must attempt to acquire or bias the lock */
schedule();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)