patch-2.2.18 linux/drivers/net/3c523.c
Next file: linux/drivers/net/3c527.c
Previous file: linux/drivers/net/3c515.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Sep 30 18:35:22 2000
- Orig file:
v2.2.17/drivers/net/3c523.c
- Orig date:
Fri Apr 21 12:46:15 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/net/3c523.c linux/drivers/net/3c523.c
@@ -161,15 +161,10 @@
/**************************************************************************/
-#define DELAY(x) {int i=jiffies; \
- if(loops_per_sec == 1) \
- while(time_after(i+(x), jiffies)); \
- else \
- __delay((loops_per_sec>>5)*x); \
- }
+#define DELAY(x) { mdelay(32 * x); }
/* a much shorter delay: */
-#define DELAY_16(); { __delay( (loops_per_sec>>16)+1 ); }
+#define DELAY_16(); { udelay(16) ; }
/* wait for command with timeout: */
#define WAIT_4_SCB_CMD() { int i; \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)