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
-  Lines: 13
-  Date:
2003-11-28 10:26:20.000000000 -0800
-  Orig file: 
linux-2.4.22/drivers/char/rtc.c
-  Orig date: 
2003-06-13 07:51:33.000000000 -0700
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)