bge: Use MPSAFE callout
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 18 Aug 2012 03:16:47 +0000 (11:16 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 18 Aug 2012 03:16:47 +0000 (11:16 +0800)
sys/dev/netif/bge/if_bge.c

index cd6d159..94fd57d 100644 (file)
@@ -1984,7 +1984,7 @@ bge_attach(device_t dev)
 
        sc = device_get_softc(dev);
        sc->bge_dev = dev;
 
        sc = device_get_softc(dev);
        sc->bge_dev = dev;
-       callout_init(&sc->bge_stat_timer);
+       callout_init_mp(&sc->bge_stat_timer);
        lwkt_serialize_init(&sc->bge_jslot_serializer);
 
        product = pci_get_device(dev);
        lwkt_serialize_init(&sc->bge_jslot_serializer);
 
        product = pci_get_device(dev);