diff options
| author | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-01-19 01:59:14 +0000 |
|---|---|---|
| committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-01-19 01:59:14 +0000 |
| commit | 08812b3925ae0a1a184e562499deb9a3cc59ec40 (patch) | |
| tree | 5e46b9a4ade7937185420c854e4fd3b6644d343f /sys/dev | |
| parent | 5683c3dd1f2b4d138c72d854d553404f9e5a4100 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/an/if_an.c | 3 | ||||
| -rw-r--r-- | sys/dev/dc/if_dc.c | 2 | ||||
| -rw-r--r-- | sys/dev/fxp/if_fxp.c | 2 | ||||
| -rw-r--r-- | sys/dev/sf/if_sf.c | 2 | ||||
| -rw-r--r-- | sys/dev/sk/if_sk.c | 2 | ||||
| -rw-r--r-- | sys/dev/ti/if_ti.c | 2 | ||||
| -rw-r--r-- | sys/dev/usb/if_aue.c | 3 | ||||
| -rw-r--r-- | sys/dev/usb/if_cue.c | 3 | ||||
| -rw-r--r-- | sys/dev/usb/if_kue.c | 3 | ||||
| -rw-r--r-- | sys/dev/vr/if_vr.c | 2 | ||||
| -rw-r--r-- | sys/dev/wi/if_wi.c | 2 |
11 files changed, 15 insertions, 11 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index 60c7892e261d4..9fd258a48ced3 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -288,7 +288,8 @@ int an_attach(sc, unit, flags) { struct ifnet *ifp = &sc->arpcom.ac_if; - mtx_init(&sc->an_mtx, device_get_nameunit(sc->an_dev), MTX_DEF); + mtx_init(&sc->an_mtx, device_get_nameunit(sc->an_dev), MTX_DEF | + MTX_RECURSE); AN_LOCK(sc); sc->an_gone = 0; diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 63e7adba526dd..3b5e91ad54232 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -1762,7 +1762,7 @@ static int dc_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct dc_softc)); - mtx_init(&sc->dc_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->dc_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); DC_LOCK(sc); /* diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index b6f66d1277779..e76640e9a3220 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -316,7 +316,7 @@ fxp_attach(device_t dev) u_long val; int rid; - mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); callout_handle_init(&sc->stat_ch); FXP_LOCK(sc); diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index aa33e7d96fcde..d03934fa02dbc 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -679,7 +679,7 @@ 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_init(&sc->sf_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); SF_LOCK(sc); /* * Handle power management nonsense. diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 143c4e46d3201..f09df99bd60bb 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1194,7 +1194,7 @@ static int sk_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct sk_softc)); - mtx_init(&sc->sk_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->sk_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); SK_LOCK(sc); /* diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 7f6660f5ae487..9b29e094bd6da 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1476,7 +1476,7 @@ static int ti_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct ti_softc)); - mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); TI_LOCK(sc); /* diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index a3b844b74738c..9804573917687 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -681,7 +681,8 @@ USB_ATTACH(aue) } } - mtx_init(&sc->aue_mtx, device_get_nameunit(self), MTX_DEF); + mtx_init(&sc->aue_mtx, device_get_nameunit(self), MTX_DEF | + MTX_RECURSE); AUE_LOCK(sc); /* Reset the adapter. */ diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index c62a0d708e720..6b71b48e462df 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -504,7 +504,8 @@ USB_ATTACH(cue) } } - mtx_init(&sc->cue_mtx, device_get_nameunit(self), MTX_DEF); + mtx_init(&sc->cue_mtx, device_get_nameunit(self), MTX_DEF | + MTX_RECURSE); CUE_LOCK(sc); #ifdef notdef diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index f3a5581713a8e..4d89b70720104 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -450,7 +450,8 @@ USB_ATTACH(kue) } } - mtx_init(&sc->kue_mtx, device_get_nameunit(self), MTX_DEF); + mtx_init(&sc->kue_mtx, device_get_nameunit(self), MTX_DEF | + MTX_RECURSE); KUE_LOCK(sc); /* Load the firmware into the NIC. */ diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index a1fa0c0d9dea9..7c3729f894333 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -643,7 +643,7 @@ static int vr_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct vr_softc *)); - mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); VR_LOCK(sc); /* diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 70330f1798aba..0b2415d2bbb97 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -304,7 +304,7 @@ static int wi_pccard_attach(device_t dev) return (error); } - mtx_init(&sc->wi_mtx, device_get_nameunit(dev), MTX_DEF); + mtx_init(&sc->wi_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE); WI_LOCK(sc); /* Reset the NIC. */ |
