summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-10-29 18:32:14 +0000
committersam <sam@FreeBSD.org>2003-10-29 18:32:14 +0000
commit47bb0c3b0937c1a26b782c6a5d860d7a38323466 (patch)
tree8b1bf6d1d562ae3f014dc773e10b7d401a1da806 /sys
parent1beb7cc4f2bb410e4d3c01bc4e769d480cf7738a (diff)
downloadFreeBSD-src-47bb0c3b0937c1a26b782c6a5d860d7a38323466.zip
FreeBSD-src-47bb0c3b0937c1a26b782c6a5d860d7a38323466.tar.gz
mark interrupt handlers MPSAFE
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fxp/if_fxp.c2
-rw-r--r--sys/dev/wi/if_wi.c2
-rw-r--r--sys/pci/if_sis.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 547080e..7fa3e88 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -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");
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index e8182d0..e70698d 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -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) {
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 7d60b5d..60140c5 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -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) {
OpenPOWER on IntegriCloud