diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-02-15 02:15:32 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-02-15 02:15:32 +0000 |
commit | 86464aed71025541805e7b1515541aee89879e33 (patch) | |
tree | e01a457a4912a8553bc65524aa3125d51f29f810 /drivers/scsi/wd7000.c | |
parent | 88f99939ecc6a95a79614574cb7d95ffccfc3466 (diff) |
Merge with Linux 2.2.1.
Diffstat (limited to 'drivers/scsi/wd7000.c')
-rw-r--r-- | drivers/scsi/wd7000.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c index 3ce29e72b..7338feeec 100644 --- a/drivers/scsi/wd7000.c +++ b/drivers/scsi/wd7000.c @@ -105,7 +105,7 @@ * 08/24/1996. * * Enhancement for wd7000_detect function has been made, so you don't have - * to enter BIOS ROM adress in initialisation data (see struct Config). + * to enter BIOS ROM address in initialisation data (see struct Config). * We cannot detect IRQ, DMA and I/O base address for now, so we have to * enter them as arguments while wd_7000 is detected. If someone has IRQ, * DMA or I/O base address set to some other value, he can enter them in @@ -791,7 +791,7 @@ static inline short WAIT (unsigned port, unsigned mask, unsigned allof, unsigned register unsigned WAITbits; register unsigned long WAITtimeout = jiffies + WAITnexttimeout; - while (jiffies <= WAITtimeout) { + while (time_before_eq(jiffies, WAITtimeout)) { WAITbits = inb (port) & mask; if (((WAITbits & allof) == allof) && ((WAITbits & noneof) == 0)) @@ -806,7 +806,7 @@ static inline void delay (unsigned how_long) { register unsigned long time = jiffies + how_long; - while (jiffies < time); + while (time_before(jiffies, time)); } @@ -868,7 +868,7 @@ static inline Scb *alloc_scbs (int needed) spin_unlock_irq(&io_request_lock); for (now = jiffies; now == jiffies; ); /* wait a jiffy */ spin_lock_irq(&io_request_lock); - } while (freescbs < needed && jiffies <= timeout); + } while (freescbs < needed && time_before_eq(jiffies, timeout)); /* * If we get here with enough free Scbs, we can take them. * Otherwise, we timed out and didn't get enough. @@ -1247,7 +1247,7 @@ int wd7000_diagnostics (Adapter *host, int code) */ mail_out (host, (struct scb *) &icb); timeout = jiffies + WAITnexttimeout; /* wait up to 2 seconds */ - while (icb.phase && jiffies < timeout) + while (icb.phase && time_before(jiffies, timeout)) barrier (); /* wait for completion */ if (icb.phase) { |