git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
net
/
tokenring
/
olympic.c
diff --git
a/drivers/net/tokenring/olympic.c
b/drivers/net/tokenring/olympic.c
index
23032a7
..
05477d2
100644
(file)
--- a/
drivers/net/tokenring/olympic.c
+++ b/
drivers/net/tokenring/olympic.c
@@
-100,7
+100,6
@@
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/bitops.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/bitops.h>
-#include <linux/jiffies.h>
#include <net/checksum.h>
#include <net/checksum.h>
@@
-308,7
+307,7
@@
static int __devinit olympic_init(struct net_device *dev)
t=jiffies;
while((readl(olympic_mmio+BCTL)) & BCTL_SOFTRESET) {
schedule();
t=jiffies;
while((readl(olympic_mmio+BCTL)) & BCTL_SOFTRESET) {
schedule();
- if(
time_after(jiffies, t + 40*HZ)
) {
+ if(
jiffies-t > 40*HZ
) {
printk(KERN_ERR "IBM PCI tokenring card not responding.\n");
return -ENODEV;
}
printk(KERN_ERR "IBM PCI tokenring card not responding.\n");
return -ENODEV;
}
@@
-360,7
+359,7
@@
static int __devinit olympic_init(struct net_device *dev)
t=jiffies;
while (!readl(olympic_mmio+CLKCTL) & CLKCTL_PAUSE) {
schedule() ;
t=jiffies;
while (!readl(olympic_mmio+CLKCTL) & CLKCTL_PAUSE) {
schedule() ;
- if(
time_after(jiffies, t + 2*HZ)) {
+ if(
jiffies-t > 2*HZ) {
printk(KERN_ERR "IBM Cardbus tokenring adapter not responsing.\n") ;
return -ENODEV;
}
printk(KERN_ERR "IBM Cardbus tokenring adapter not responsing.\n") ;
return -ENODEV;
}
@@
-374,7
+373,7
@@
static int __devinit olympic_init(struct net_device *dev)
t=jiffies;
while(!((readl(olympic_mmio+SISR_RR)) & SISR_SRB_REPLY)) {
schedule();
t=jiffies;
while(!((readl(olympic_mmio+SISR_RR)) & SISR_SRB_REPLY)) {
schedule();
- if(
time_after(jiffies, t + 15*HZ)
) {
+ if(
jiffies-t > 15*HZ
) {
printk(KERN_ERR "IBM PCI tokenring card not responding.\n");
return -ENODEV;
}
printk(KERN_ERR "IBM PCI tokenring card not responding.\n");
return -ENODEV;
}
@@
-520,7
+519,7
@@
static int olympic_open(struct net_device *dev)
olympic_priv->srb_queued=0;
break;
}
olympic_priv->srb_queued=0;
break;
}
- if (
time_after(jiffies, t + 10*HZ)) {
+ if (
(jiffies-t) > 10*HZ) {
printk(KERN_WARNING "%s: SRB timed out. \n",dev->name) ;
olympic_priv->srb_queued=0;
break ;
printk(KERN_WARNING "%s: SRB timed out. \n",dev->name) ;
olympic_priv->srb_queued=0;
break ;