From: François Tigeot Date: Wed, 15 Aug 2012 07:44:20 +0000 (+0200) Subject: ixgbe: Use callout_init_mp() X-Git-Tag: v3.2.0~391 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/9d1692ad24c38561d5181fff115f77f8b40b08ba ixgbe: Use callout_init_mp() * The timer callout function is mpsafe and callout_init() assumes it isn't * Replace callout_init() by callout_init_mp() and avoid grabbing the mplock --- diff --git a/sys/dev/netif/ixgbe/ixgbe.c b/sys/dev/netif/ixgbe/ixgbe.c index 2361af6..eb20a47 100644 --- a/sys/dev/netif/ixgbe/ixgbe.c +++ b/sys/dev/netif/ixgbe/ixgbe.c @@ -455,7 +455,7 @@ ixgbe_attach(device_t dev) 0, ixgbe_set_thermal_test, "I", "Thermal Test"); /* Set up the timer callout */ - callout_init(&adapter->timer); + callout_init_mp(&adapter->timer); /* Determine hardware revision */ ixgbe_identify_hardware(adapter);