From 9d1692ad24c38561d5181fff115f77f8b40b08ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Wed, 15 Aug 2012 09:44:20 +0200 Subject: [PATCH] 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 --- sys/dev/netif/ixgbe/ixgbe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.7.2