diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-09-10 03:27:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:38 -0400 |
commit | 86e8486245a01f05a3267b2e8b5c02c2303b670d (patch) | |
tree | 4d9f90d8d3f34461f6dddacae708eb31753c7bb6 /drivers/block/xd.c | |
parent | 310b587e011ce02328c8e4c29eccd9f14d9007c5 (diff) |
[PATCH] drivers/block: fix-up schedule_timeout() usage
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>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/xd.c')
-rw-r--r-- | drivers/block/xd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/block/xd.c b/drivers/block/xd.c index 2c6d3423496b..68b6d7b154cf 100644 --- a/drivers/block/xd.c +++ b/drivers/block/xd.c | |||
@@ -530,10 +530,8 @@ static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long t | |||
530 | int success; | 530 | int success; |
531 | 531 | ||
532 | xdc_busy = 1; | 532 | xdc_busy = 1; |
533 | while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry)) { | 533 | while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry)) |
534 | set_current_state(TASK_UNINTERRUPTIBLE); | 534 | schedule_timeout_uninterruptible(1); |
535 | schedule_timeout(1); | ||
536 | } | ||
537 | xdc_busy = 0; | 535 | xdc_busy = 0; |
538 | return (success); | 536 | return (success); |
539 | } | 537 | } |