mark interrupt handlers MPSAFE

This commit is contained in:
Sam Leffler 2003-10-29 18:32:14 +00:00
parent 90fc7b7cb8
commit b237430cfe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121697
3 changed files with 3 additions and 3 deletions

View file

@ -834,7 +834,7 @@ fxp_attach(device_t dev)
* however, ifp and its functions are not fully locked so MPSAFE
* should not be used unless you can handle potential data loss.
*/
error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET /*|INTR_MPSAFE*/,
error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE,
fxp_intr, sc, &sc->ih);
if (error) {
device_printf(dev, "could not setup irq\n");

View file

@ -256,7 +256,7 @@ wi_attach(device_t dev)
* NB: no locking is needed here; don't put it here
* unless you can prove it!
*/
error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET,
error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE,
wi_intr, sc, &sc->wi_intrhand);
if (error) {

View file

@ -1402,7 +1402,7 @@ sis_attach(dev)
ifp->if_capabilities |= IFCAP_VLAN_MTU;
/* Hook interrupt last to avoid having to lock softc */
error = bus_setup_intr(dev, sc->sis_irq, INTR_TYPE_NET,
error = bus_setup_intr(dev, sc->sis_irq, INTR_TYPE_NET | INTR_MPSAFE,
sis_intr, sc, &sc->sis_intrhand);
if (error) {