Commit 2c0f1af0 authored by Duncan Sands's avatar Duncan Sands Committed by Linus Torvalds

[PATCH] USB speedtouch: replace yield()

Use set_current_state (TASK_RUNNING); schedule(); instead.
parent 9dfb0ad1
......@@ -1306,7 +1306,8 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
if (completed == count)
break;
yield ();
set_current_state (TASK_RUNNING);
schedule ();
} while (1);
dbg ("udsl_usb_disconnect: flushing");
......@@ -1345,7 +1346,8 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
if (count == UDSL_NUMBER_SND_URBS)
break;
yield ();
set_current_state (TASK_RUNNING);
schedule ();
} while (1);
dbg ("udsl_usb_disconnect: flushing");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment