patch-2.4.23 linux-2.4.23/drivers/char/rtc.c

Next file: linux-2.4.23/drivers/char/sbc60xxwdt.c
Previous file: linux-2.4.23/drivers/char/rocket_int.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/char/rtc.c linux-2.4.23/drivers/char/rtc.c
@@ -242,10 +242,10 @@
 		return -EINVAL;
 
 	add_wait_queue(&rtc_wait, &wait);
-
-	current->state = TASK_INTERRUPTIBLE;
 		
 	do {
+		__set_current_state(TASK_INTERRUPTIBLE);
+
 		/* First make it right. Then make it fast. Putting this whole
 		 * block within the parentheses of a while would be too
 		 * confusing. And no, xchg() is not the answer. */

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