em: rman_get_cpuid should be used to get the interrupt's target CPU
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 28 Dec 2011 13:53:41 +0000 (21:53 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 28 Dec 2011 13:53:41 +0000 (21:53 +0800)
sys/dev/netif/em/if_em.c

index a2b55a6..73f81e6 100644 (file)
@@ -812,7 +812,7 @@ em_attach(device_t dev)
                goto fail;
        }
 
-       ifp->if_cpuid = ithread_cpuid(rman_get_start(adapter->intr_res));
+       ifp->if_cpuid = rman_get_cpuid(adapter->intr_res);
        KKASSERT(ifp->if_cpuid >= 0 && ifp->if_cpuid < ncpus);
        return (0);
 fail: