]> err.no Git - linux-2.6/blobdiff - drivers/block/xd.c
[PATCH] i82593.h: make header comment GPL-compatible
[linux-2.6] / drivers / block / xd.c
index 2c6d3423496b34db28e9f52ccf0592ca69d9892c..68b6d7b154cf88057b138d72a58b74d93409c23f 100644 (file)
@@ -530,10 +530,8 @@ static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long t
        int success;
 
        xdc_busy = 1;
-       while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry)) {
-               set_current_state(TASK_UNINTERRUPTIBLE);
-               schedule_timeout(1);
-       }
+       while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry))
+               schedule_timeout_uninterruptible(1);
        xdc_busy = 0;
        return (success);
 }