diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-04 21:03:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-04 21:03:38 +0000 |
commit | db9aa81e239bb1c46b3b7ba560474cd954b78bf3 (patch) | |
tree | f7344c6a10fdc020dd02fe2ee1f244cb56f92bb6 /sys/i386/isa | |
parent | 5b964d2945fa9a17daef9bc1e6dbbcb4f7154379 (diff) | |
download | FreeBSD-src-db9aa81e239bb1c46b3b7ba560474cd954b78bf3.zip FreeBSD-src-db9aa81e239bb1c46b3b7ba560474cd954b78bf3.tar.gz |
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
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/if_el.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/intr_machdep.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/nmi.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index 0e980c5..b13f71a 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -148,8 +148,8 @@ el_probe(device_t dev) sc->el_btag = rman_get_bustag(sc->el_res); sc->el_bhandle = rman_get_bushandle(sc->el_res); - mtx_init(&sc->el_mtx, - device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); + mtx_init(&sc->el_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, + MTX_DEF | MTX_RECURSE); EL_LOCK(sc); /* Now attempt to grab the station address from the PROM diff --git a/sys/i386/isa/intr_machdep.c b/sys/i386/isa/intr_machdep.c index 59c739e..cfd6c69 100644 --- a/sys/i386/isa/intr_machdep.c +++ b/sys/i386/isa/intr_machdep.c @@ -604,7 +604,7 @@ static void ithds_init(void *dummy) { - mtx_init(&ithds_table_lock, "ithread table lock", MTX_SPIN); + mtx_init(&ithds_table_lock, "ithread table lock", NULL, MTX_SPIN); } SYSINIT(ithds_init, SI_SUB_INTR, SI_ORDER_SECOND, ithds_init, NULL); diff --git a/sys/i386/isa/nmi.c b/sys/i386/isa/nmi.c index 59c739e..cfd6c69 100644 --- a/sys/i386/isa/nmi.c +++ b/sys/i386/isa/nmi.c @@ -604,7 +604,7 @@ static void ithds_init(void *dummy) { - mtx_init(&ithds_table_lock, "ithread table lock", MTX_SPIN); + mtx_init(&ithds_table_lock, "ithread table lock", NULL, MTX_SPIN); } SYSINIT(ithds_init, SI_SUB_INTR, SI_ORDER_SECOND, ithds_init, NULL); |