lapic_init: Use 'bsp' function parameter consistently
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 19 Mar 2011 06:56:16 +0000 (14:56 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 19 Mar 2011 07:52:09 +0000 (15:52 +0800)
sys/platform/pc32/apic/mpapic.c
sys/platform/pc64/apic/mpapic.c

index 22e79a3..6c72e35 100644 (file)
@@ -171,7 +171,7 @@ lapic_init(boolean_t bsp)
        temp = lapic.lvt_lint0;
        temp &= ~(APIC_LVT_MASKED | APIC_LVT_TRIG_MASK | 
                  APIC_LVT_POLARITY_MASK | APIC_LVT_DM_MASK);
-       if (mycpu->gd_cpuid == 0)
+       if (bsp)
                temp |= APIC_LVT_DM_EXTINT;
        else
                temp |= APIC_LVT_DM_FIXED | APIC_LVT_MASKED;
index 04a5921..5ad9952 100644 (file)
@@ -178,7 +178,7 @@ lapic_init(boolean_t bsp)
        temp = lapic->lvt_lint0;
        temp &= ~(APIC_LVT_MASKED | APIC_LVT_TRIG_MASK | 
                  APIC_LVT_POLARITY_MASK | APIC_LVT_DM_MASK);
-       if (mycpu->gd_cpuid == 0)
+       if (bsp)
                temp |= APIC_LVT_DM_EXTINT;
        else
                temp |= APIC_LVT_DM_FIXED | APIC_LVT_MASKED;