diff options
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 | } |