patch-2.4.0-test11 linux/arch/mips/kernel/semaphore.c

Next file: linux/arch/mips64/config.in
Previous file: linux/arch/mips/config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/arch/mips/kernel/semaphore.c linux/arch/mips/kernel/semaphore.c
@@ -187,8 +187,7 @@
 		add_wait_queue_exclusive(&sem->wait, &wait);
 	
 		while (atomic_read(&sem->count) < 0) {
-			set_task_state(tsk, (TASK_UNINTERRUPTIBLE
-					     | TASK_EXCLUSIVE));
+			set_task_state(tsk, TASK_UNINTERRUPTIBLE);
 			if (atomic_read(&sem->count) >= RW_LOCK_BIAS)
 				break;
 			schedule();
@@ -208,8 +207,7 @@
 		while (1) {
 			if (test_and_clear_bit(1, &sem->granted))
 				break;
-			set_task_state(tsk, (TASK_UNINTERRUPTIBLE
-					     | TASK_EXCLUSIVE));
+			set_task_state(tsk, TASK_UNINTERRUPTIBLE);
 			if ((sem->granted & 2) == 0)
 				schedule();
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)