Commit d2ef85b0 authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman

[PATCH] USB speedtouch: replace yield()

Use set_current_state (TASK_RUNNING); schedule(); instead.
parent d3ac7193
......@@ -1298,7 +1298,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");
......@@ -1337,7 +1338,8 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
if (count == UDSL_NUM_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