|
@@ -211,7 +211,7 @@ static void __cpuinit smp_callin(void)
|
|
/*
|
|
/*
|
|
* (This works even if the APIC is not enabled.)
|
|
* (This works even if the APIC is not enabled.)
|
|
*/
|
|
*/
|
|
- phys_id = GET_APIC_ID(read_apic_id());
|
|
|
|
|
|
+ phys_id = read_apic_id();
|
|
cpuid = smp_processor_id();
|
|
cpuid = smp_processor_id();
|
|
if (cpu_isset(cpuid, cpu_callin_map)) {
|
|
if (cpu_isset(cpuid, cpu_callin_map)) {
|
|
panic("%s: phys CPU#%d, CPU#%d already present??\n", __func__,
|
|
panic("%s: phys CPU#%d, CPU#%d already present??\n", __func__,
|
|
@@ -1157,9 +1157,9 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
|
|
}
|
|
}
|
|
|
|
|
|
preempt_disable();
|
|
preempt_disable();
|
|
- if (GET_APIC_ID(read_apic_id()) != boot_cpu_physical_apicid) {
|
|
|
|
|
|
+ if (read_apic_id() != boot_cpu_physical_apicid) {
|
|
panic("Boot APIC ID in local APIC unexpected (%d vs %d)",
|
|
panic("Boot APIC ID in local APIC unexpected (%d vs %d)",
|
|
- GET_APIC_ID(read_apic_id()), boot_cpu_physical_apicid);
|
|
|
|
|
|
+ read_apic_id(), boot_cpu_physical_apicid);
|
|
/* Or can we switch back to PIC here? */
|
|
/* Or can we switch back to PIC here? */
|
|
}
|
|
}
|
|
preempt_enable();
|
|
preempt_enable();
|