X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Ftpqic02.c;h=d812253b447323277c434084ab3df790205d2472;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=66881e953399e1b00927f8885d8eb75cf9f1d3b9;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/char/tpqic02.c b/drivers/char/tpqic02.c index 66881e953..d812253b4 100644 --- a/drivers/char/tpqic02.c +++ b/drivers/char/tpqic02.c @@ -554,10 +554,9 @@ static int wait_for_ready(time_t timeout) /* not ready and no exception && timeout not expired yet */ while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && time_before(jiffies, spin_t)) { /* be `nice` to other processes on long operations... */ - current->state = TASK_INTERRUPTIBLE; /* nap 0.30 sec between checks, */ /* but could be woken up earlier by signals... */ - schedule_timeout(3 * HZ / 10); + msleep_interruptible(300); } /* don't use jiffies for this test because it may have changed by now */