diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-08-15 11:30:11 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 12:23:44 -0700 |
commit | 22c438632850c0d6257b45c90afed0cea6953afc (patch) | |
tree | eb70da121b1fab2a2626167575aa38ed3013fc65 /drivers/usb/host/ehci-hcd.c | |
parent | dd16525b698528172899f10c14a3eb6ddb888a53 (diff) | |
download | linux-22c438632850c0d6257b45c90afed0cea6953afc.tar.gz linux-22c438632850c0d6257b45c90afed0cea6953afc.tar.bz2 linux-22c438632850c0d6257b45c90afed0cea6953afc.zip |
[PATCH] drivers/usb: fix-up schedule_timeout() usage
Description: Use schedule_timeout_{,un}interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index ae5ba4ddfb40..b948ffd94f45 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -1147,8 +1147,7 @@ rescan: case QH_STATE_UNLINK: /* wait for hw to finish? */ idle_timeout: spin_unlock_irqrestore (&ehci->lock, flags); - set_current_state (TASK_UNINTERRUPTIBLE); - schedule_timeout (1); + schedule_timeout_uninterruptible(1); goto rescan; case QH_STATE_IDLE: /* fully unlinked */ if (list_empty (&qh->qtd_list)) { |