|
@@ -69,6 +69,7 @@ static const char *version =
|
|
#include <linux/atalk.h>
|
|
#include <linux/atalk.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/bitops.h>
|
|
|
|
+#include <linux/jiffies.h>
|
|
|
|
|
|
#include <asm/system.h>
|
|
#include <asm/system.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
@@ -503,7 +504,7 @@ static void cops_reset(struct net_device *dev, int sleep)
|
|
long snap=jiffies;
|
|
long snap=jiffies;
|
|
|
|
|
|
/* Let card finish initializing, about 1/3 second */
|
|
/* Let card finish initializing, about 1/3 second */
|
|
- while(jiffies-snap<HZ/3)
|
|
|
|
|
|
+ while (time_before(jiffies, snap + HZ/3))
|
|
schedule();
|
|
schedule();
|
|
}
|
|
}
|
|
else
|
|
else
|