Mark the arcmsr driver MPSAFE
authorFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 11 Aug 2011 16:13:11 +0000 (18:13 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 11 Aug 2011 16:13:11 +0000 (18:13 +0200)
sys/dev/raid/arcmsr/arcmsr.c

index d60934f..6075ae3 100644 (file)
@@ -3526,7 +3526,7 @@ static int arcmsr_attach(device_t dev)
        rid=0;
        irqres=bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE);
        if(irqres == NULL ||
-               bus_setup_intr(dev, irqres, 0, arcmsr_intr_handler, acb, &acb->ih, NULL)) {
+               bus_setup_intr(dev, irqres, INTR_MPSAFE, arcmsr_intr_handler, acb, &acb->ih, NULL)) {
                arcmsr_free_resource(acb);
                ARCMSR_LOCK_DESTROY(&acb->qbuffer_lock);
                kprintf("arcmsr%d: unable to register interrupt handler!\n", unit);