diff options
author | jfv <jfv@FreeBSD.org> | 2009-12-14 18:43:18 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2009-12-14 18:43:18 +0000 |
commit | a0ba8f75c63083dabe6fc209d0a1f4652bbb22bd (patch) | |
tree | 381dda764e8547a04d69f95b7c18f9b5f1fcfb5b /sys/dev/e1000 | |
parent | 7532fc6bd06a98062079c75ccd105e6fc7c8ad15 (diff) | |
download | FreeBSD-src-a0ba8f75c63083dabe6fc209d0a1f4652bbb22bd.zip FreeBSD-src-a0ba8f75c63083dabe6fc209d0a1f4652bbb22bd.tar.gz |
Remove the MTX_SPIN flag to the shared code MUTEX
as it was causing a panic, also took the opportunity
to rename the lock for clarity.
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r-- | sys/dev/e1000/e1000_osdep.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/e1000/e1000_osdep.h b/sys/dev/e1000/e1000_osdep.h index fcfe8f5..bfcd4bf 100644 --- a/sys/dev/e1000/e1000_osdep.h +++ b/sys/dev/e1000/e1000_osdep.h @@ -82,8 +82,7 @@ /* Mutex used in the shared code */ #define E1000_MUTEX struct mtx #define E1000_MUTEX_INIT(mutex) mtx_init((mutex), #mutex, \ - MTX_NETWORK_LOCK, \ - MTX_DEF | MTX_SPIN) + "E1000 Shared Lock", MTX_DEF) #define E1000_MUTEX_DESTROY(mutex) mtx_destroy(mutex) #define E1000_MUTEX_LOCK(mutex) mtx_lock(mutex) #define E1000_MUTEX_TRYLOCK(mutex) mtx_trylock(mutex) |