patch-2.4.22 linux-2.4.22/drivers/ieee1394/hosts.c

Next file: linux-2.4.22/drivers/ieee1394/hosts.h
Previous file: linux-2.4.22/drivers/ieee1394/highlevel.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/ieee1394/hosts.c linux-2.4.22/drivers/ieee1394/hosts.c
@@ -138,7 +138,10 @@
 
 	atomic_set(&h->generation, 0);
 
-	INIT_TQUEUE(&h->timeout_tq, (void (*)(void*))abort_timedouts, h);
+	init_timer(&h->timeout);
+	h->timeout.data = (unsigned long) h;
+	h->timeout.function = abort_timedouts;
+	h->timeout_interval = HZ / 20; // 50ms by default
 
         h->topology_map = h->csr.topology_map + 3;
         h->speed_map = (u8 *)(h->csr.speed_map + 2);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)