usb/uhci-hcd: replace schedule_timeout()
Subsystems (3)
PATCH 1/1 usb/uhci-hcd: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/usb/host/uhci-hcd.c +2 -4
@@ -1834,13 +1834,11 @@ static void reset_hc(struct uhci_hcd *uh/* Global reset for 50ms */ uhci->state =UHCI_RESET ;outw (USBCMD_GRESET , io_addr +USBCMD ); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((HZ *50 +999 ) /1000 ); +msleep (50 );outw (0 , io_addr +USBCMD );/* Another 10ms delay */ -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((HZ *10 +999 ) /1000 ); +msleep (10 ); uhci->resume_detect =0 ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors