diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-08-15 14:30:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 15:23:44 -0400 |
commit | 22c438632850c0d6257b45c90afed0cea6953afc (patch) | |
tree | eb70da121b1fab2a2626167575aa38ed3013fc65 /drivers/usb/serial/pl2303.c | |
parent | dd16525b698528172899f10c14a3eb6ddb888a53 (diff) |
[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/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 461474176cfb..ea8c6e74be4f 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -652,8 +652,7 @@ static void pl2303_close (struct usb_serial_port *port, struct file *filp) | |||
652 | timeout = max((HZ*2560)/bps,HZ/10); | 652 | timeout = max((HZ*2560)/bps,HZ/10); |
653 | else | 653 | else |
654 | timeout = 2*HZ; | 654 | timeout = 2*HZ; |
655 | set_current_state(TASK_INTERRUPTIBLE); | 655 | schedule_timeout_interruptible(timeout); |
656 | schedule_timeout(timeout); | ||
657 | 656 | ||
658 | /* shutdown our urbs */ | 657 | /* shutdown our urbs */ |
659 | dbg("%s - shutting down urbs", __FUNCTION__); | 658 | dbg("%s - shutting down urbs", __FUNCTION__); |