From e87965eba44c127cbb0939db6545e58bd99cfb77 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Mon, 10 Oct 2011 19:56:39 +0800 Subject: [PATCH] psm: Set the interrupt's target CPU properly --- sys/dev/misc/psm/psm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/misc/psm/psm.c b/sys/dev/misc/psm/psm.c index b320fc24af..c752b863e2 100644 --- a/sys/dev/misc/psm/psm.c +++ b/sys/dev/misc/psm/psm.c @@ -1433,8 +1433,8 @@ psmattach(device_t dev) /* Setup our interrupt handler */ rid = KBDC_RID_AUX; BUS_READ_IVAR(device_get_parent(dev), dev, KBDC_IVAR_IRQ, &irq); - sc->intr = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, irq, irq, 1, - RF_ACTIVE); + sc->intr = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev, SYS_RES_IRQ, + &rid, irq, irq, 1, RF_ACTIVE, machintr_intr_cpuid(irq)); if (sc->intr == NULL) return (ENXIO); -- 2.11.4.GIT