From 559b88d1c8f6977d912401da0aec406fd7ba892f Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 11 Dec 2006 00:35:51 +0000 Subject: split wi_start int locked+unlocked variants and use the unlocked one from the isr to eliminate a recursive lock MFC after: 1 month --- sys/dev/wi/if_wivar.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/wi/if_wivar.h') 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); -- cgit v1.1