Skip to contentSkip to conversation

usb/auerswald: add

PATCH New Nishanth Aravamudan 1 participant 2 messages Sep 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/9 usb/auerswald: add

Any comments would be appreciated. One patch removed from USB set, so total is now 9.

Description: Reorder set_current_state() and schedule_timeout() so that schedule_timeout() will delay as expected every iteration of the while-loop. Without the addition, schedule_timeout() will return immediately in the first iteration.

drivers/usb/misc/auerswald.c +1 -1
@@ -626,8 +626,8 @@ static int auerchain_start_wait_urb (pau
 
 	while (timeout && !chs.done)
 	{
-		timeout = schedule_timeout (timeout);
 		set_current_state(TASK_UNINTERRUPTIBLE);
+		timeout = schedule_timeout (timeout);
 		rmb();
 	}
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw

PATCH 2/9 usb/auerswald: reorder

Wrong subject line! Please use this version.

-Nish

Description: Reorder set_current_state() and schedule_timeout() so that schedule_timeout() will delay as expected every iteration of the while-loop. Without the addition, schedule_timeout() will return immediately in the first iteration.

drivers/usb/misc/auerswald.c +1 -1
@@ -626,8 +626,8 @@ static int auerchain_start_wait_urb (pau
 
 	while (timeout && !chs.done)
 	{
-		timeout = schedule_timeout (timeout);
 		set_current_state(TASK_UNINTERRUPTIBLE);
+		timeout = schedule_timeout (timeout);
 		rmb();
 	}
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors