diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-09-10 00:27:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 10:06:38 -0700 |
commit | 7b4ccf8db4c1dc343ad5d6ed19240bbc3b5f945f (patch) | |
tree | 5e73fbba733a6e77f157c4022ee26b8c56b7410e /drivers/parport/parport_pc.c | |
parent | da4cd8dfe18ee901b880f94ca0fa79d5cc1cd0eb (diff) | |
download | kernel_samsung_smdk4412-7b4ccf8db4c1dc343ad5d6ed19240bbc3b5f945f.zip kernel_samsung_smdk4412-7b4ccf8db4c1dc343ad5d6ed19240bbc3b5f945f.tar.gz kernel_samsung_smdk4412-7b4ccf8db4c1dc343ad5d6ed19240bbc3b5f945f.tar.bz2 |
[PATCH] parport: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size. Also use
human-time to jiffies units conversion functions rather than direct HZ
division to avoid rounding issues.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/parport/parport_pc.c')
-rw-r--r-- | drivers/parport/parport_pc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 1b938bb..c6493ad 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c @@ -173,8 +173,7 @@ static int change_mode(struct parport *p, int m) if (time_after_eq (jiffies, expire)) /* The FIFO is stuck. */ return -EBUSY; - __set_current_state (TASK_INTERRUPTIBLE); - schedule_timeout ((HZ + 99) / 100); + schedule_timeout_interruptible(msecs_to_jiffies(10)); if (signal_pending (current)) break; } |