patch-2.4.0-test11 linux/arch/m68k/kernel/semaphore.c
Next file: linux/arch/mips/config.in
Previous file: linux/arch/m68k/config.in
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Nov 11 19:02:40 2000
- Orig file:
v2.4.0-test10/linux/arch/m68k/kernel/semaphore.c
- Orig date:
Tue Oct 31 12:42:26 2000
diff -u --recursive --new-file v2.4.0-test10/linux/arch/m68k/kernel/semaphore.c linux/arch/m68k/kernel/semaphore.c
@@ -180,7 +180,7 @@
add_wait_queue_exclusive(&sem->wait, &wait);
while (atomic_read(&sem->count) < 0) {
- set_task_state(current, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
+ set_task_state(current, TASK_UNINTERRUPTIBLE);
if (atomic_read(&sem->count) >= 0)
break; /* we must attempt to acquire or bias the lock */
schedule();
@@ -199,7 +199,7 @@
for (;;) {
if (sem->write_bias_granted && xchg(&sem->write_bias_granted, 0))
break;
- set_task_state(current, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
+ set_task_state(current, TASK_UNINTERRUPTIBLE);
if (!sem->write_bias_granted)
schedule();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)