patch-2.1.62 linux/drivers/net/auto_irq.c

Next file: linux/drivers/net/com20020.c
Previous file: linux/drivers/net/atp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.61/linux/drivers/net/auto_irq.c linux/drivers/net/auto_irq.c
@@ -46,8 +46,11 @@
 	irqs = probe_irq_on();
 }
 
+#define BUSY_LOOP_UNTIL(j) while ((long)(jiffies-(j)) < 0) ;
 int autoirq_report(int waittime)
 {
+	unsigned long delay = jiffies + waittime;
+	BUSY_LOOP_UNTIL(delay)
 	return probe_irq_off(irqs);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov