ChangeSet 1.2000.12.9, 2004/10/22 11:06:26-07:00, [EMAIL PROTECTED]

[PATCH] USB: tiglusb: replace schedule_timeout() with msleep_interruptible()

Description: Use msleep_interruptible() instead of schedule_timeout() to
guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
Signed-off-by: Maximilian Attems <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/misc/tiglusb.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


diff -Nru a/drivers/usb/misc/tiglusb.c b/drivers/usb/misc/tiglusb.c
--- a/drivers/usb/misc/tiglusb.c        2004-10-22 16:12:19 -07:00
+++ b/drivers/usb/misc/tiglusb.c        2004-10-22 16:12:19 -07:00
@@ -116,8 +116,7 @@
                        return -EBUSY;
                }
 
-               set_current_state(TASK_INTERRUPTIBLE);
-               schedule_timeout (HZ / 2);
+               msleep_interruptible(500);
 
                if (signal_pending (current)) {
                        return -EAGAIN;



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to