Skip to contentSkip to conversation

USB speedtouch: replace yield()

PATCH In review Duncan Sands 1 participant 1 message May 20, 2003 USB

lore
Share & tools
lore
#0 lore raw

PATCH 3/14 USB speedtouch: replace yield()

Use set_current_state (TASK_RUNNING); schedule(); instead.

 speedtch.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/usb/misc/speedtch.c +4 -2
diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c
@@ -1298,7 +1298,8 @@
 		if (completed == count)
 			break;
 
-		yield ();
+		set_current_state (TASK_RUNNING);
+		schedule ();
 	} while (1);
 
 	dbg ("udsl_usb_disconnect: flushing");
@@ -1337,7 +1338,8 @@
 		if (count == UDSL_NUM_SND_URBS)
 			break;
 
-		yield ();
+		set_current_state (TASK_RUNNING);
+		schedule ();
 	} while (1);
 
 	dbg ("udsl_usb_disconnect: flushing");