summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi/if_wivar.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-12-11 00:35:51 +0000
committersam <sam@FreeBSD.org>2006-12-11 00:35:51 +0000
commit559b88d1c8f6977d912401da0aec406fd7ba892f (patch)
treed40dcc549435472c2ca96cda980bd9217c47d6ab /sys/dev/wi/if_wivar.h
parent02d21702b760c4e2ac09dc97d6fcc5298c51ce51 (diff)
downloadFreeBSD-src-559b88d1c8f6977d912401da0aec406fd7ba892f.zip
FreeBSD-src-559b88d1c8f6977d912401da0aec406fd7ba892f.tar.gz
split wi_start int locked+unlocked variants and use the unlocked
one from the isr to eliminate a recursive lock MFC after: 1 month
Diffstat (limited to 'sys/dev/wi/if_wivar.h')
-rw-r--r--sys/dev/wi/if_wivar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wivar.h b/sys/dev/wi/if_wivar.h
index a1dc803..a437f96 100644
--- a/sys/dev/wi/if_wivar.h
+++ b/sys/dev/wi/if_wivar.h
@@ -220,6 +220,7 @@ struct wi_card_ident {
#define WI_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
#define WI_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
+#define WI_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED)
int wi_attach(device_t);
int wi_detach(device_t);
OpenPOWER on IntegriCloud