patch-2.4.20 linux-2.4.20/drivers/net/sb1000.c
Next file: linux-2.4.20/drivers/net/sb1250-mac.c
Previous file: linux-2.4.20/drivers/net/rcpci45.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/net/sb1000.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/net/sb1000.c linux-2.4.20/drivers/net/sb1000.c
@@ -276,7 +276,7 @@
* SB1000 hardware routines to be used during open/configuration phases
*/
-const int TimeOutJiffies = (int)(8.75 * HZ);
+const int TimeOutJiffies = (875 * HZ) / 100;
static inline void nicedelay(unsigned long usecs)
{
@@ -299,7 +299,7 @@
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(0);
a = inb(ioaddr[0] + 7);
- if (jiffies >= timeout) {
+ if (time_after_eq(jiffies, timeout)) {
printk(KERN_WARNING "%s: card_wait_for_busy_clear timeout\n",
name);
return -ETIME;
@@ -323,7 +323,7 @@
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(0);
a = inb(ioaddr[1] + 6);
- if (jiffies >= timeout) {
+ if (time_after_eq(jiffies, timeout)) {
printk(KERN_WARNING "%s: card_wait_for_ready timeout\n",
name);
return -ETIME;
@@ -397,7 +397,7 @@
timeout = jiffies + Sb1000TimeOutJiffies;
while (inb(ioaddr[1] + 6) & 0x80) {
- if (jiffies >= timeout) {
+ if (time_after_eq(jiffies, timeout)) {
printk(KERN_WARNING "%s: sb1000_wait_for_ready timeout\n",
name);
return -ETIME;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)