Kprof uses an IRQ alarm
[akaros.git] / kern / drivers / dev / ether.c
index ff00f7e..2637485 100644 (file)
@@ -26,7 +26,7 @@
 #include <pmap.h>
 #include <smp.h>
 #include <ip.h>
-#include <arch/io.h>
+
 enum {
        Type8021Q = 0x8100,                     /* value of type field for 802.1[pQ] tags */
 };
@@ -681,9 +681,6 @@ static void etherreset(void)
                        ether->type = cards[n].type;
                        snprintf(name, sizeof(name), "ether%d", ctlrno);
 
-                       if (ether->interrupt != NULL)
-                               register_dev_irq(ether->irq, ether->interrupt, ether, BUSUNKNOWN);
-
                        i = snprintf(buf, sizeof(buf),
                                                 "#l%d: %s: %dMbps port 0x%x irq %u", ctlrno,
                                                 ether->type, ether->netif.mbps, ether->port,