summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/pl2303.c
diff options
context:
space:
mode:
authorNishanth Aravamudan2005-08-15 20:30:11 +0200
committerGreg Kroah-Hartman2005-09-12 21:23:44 +0200
commit22c438632850c0d6257b45c90afed0cea6953afc (patch)
treeeb70da121b1fab2a2626167575aa38ed3013fc65 /drivers/usb/serial/pl2303.c
parent[PATCH] USB: get rid of minor log spamming (diff)
downloadkernel-qcow2-linux-22c438632850c0d6257b45c90afed0cea6953afc.tar.gz
kernel-qcow2-linux-22c438632850c0d6257b45c90afed0cea6953afc.tar.xz
kernel-qcow2-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/serial/pl2303.c')
-rw-r--r--drivers/usb/serial/pl2303.c3
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)
timeout = max((HZ*2560)/bps,HZ/10);
else
timeout = 2*HZ;
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(timeout);
+ schedule_timeout_interruptible(timeout);
/* shutdown our urbs */
dbg("%s - shutting down urbs", __FUNCTION__);