From db9aa81e239bb1c46b3b7ba560474cd954b78bf3 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 4 Apr 2002 21:03:38 +0000 Subject: Change callers of mtx_init() to pass in an appropriate lock type name. In most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64 --- sys/pci/if_sf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/pci/if_sf.c') diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index 771e69e..6322a3b 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/if_sf.c @@ -671,7 +671,8 @@ static int sf_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct sf_softc)); - mtx_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); + mtx_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, + MTX_DEF | MTX_RECURSE); SF_LOCK(sc); /* * Handle power management nonsense. -- cgit v1.1