projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0bbb59f
)
ixgbe: Use callout_init_mp()
author
François Tigeot <ftigeot@wolfpond.org>
Wed, 15 Aug 2012 07:44:20 +0000 (09:44 +0200)
committer
François Tigeot <ftigeot@wolfpond.org>
Wed, 15 Aug 2012 07:44:20 +0000 (09:44 +0200)
* 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
patch
|
blob
|
blame
|
history
diff --git
a/sys/dev/netif/ixgbe/ixgbe.c
b/sys/dev/netif/ixgbe/ixgbe.c
index
2361af6
..
eb20a47
100644
(file)
--- 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);