aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/apic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r--arch/x86/kernel/apic/apic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index cea4fc19e844..f3e9b2df4b16 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1623,6 +1623,9 @@ void __init enable_IR_x2apic(void)
1623 unsigned long flags; 1623 unsigned long flags;
1624 int ret, ir_stat; 1624 int ret, ir_stat;
1625 1625
1626 if (skip_ioapic_setup)
1627 return;
1628
1626 ir_stat = irq_remapping_prepare(); 1629 ir_stat = irq_remapping_prepare();
1627 if (ir_stat < 0 && !x2apic_supported()) 1630 if (ir_stat < 0 && !x2apic_supported())
1628 return; 1631 return;
@@ -2090,7 +2093,6 @@ int generic_processor_info(int apicid, int version)
2090 return -EINVAL; 2093 return -EINVAL;
2091 } 2094 }
2092 2095
2093 num_processors++;
2094 if (apicid == boot_cpu_physical_apicid) { 2096 if (apicid == boot_cpu_physical_apicid) {
2095 /* 2097 /*
2096 * x86_bios_cpu_apicid is required to have processors listed 2098 * x86_bios_cpu_apicid is required to have processors listed
@@ -2113,10 +2115,13 @@ int generic_processor_info(int apicid, int version)
2113 2115
2114 pr_warning("APIC: Package limit reached. Processor %d/0x%x ignored.\n", 2116 pr_warning("APIC: Package limit reached. Processor %d/0x%x ignored.\n",
2115 thiscpu, apicid); 2117 thiscpu, apicid);
2118
2116 disabled_cpus++; 2119 disabled_cpus++;
2117 return -ENOSPC; 2120 return -ENOSPC;
2118 } 2121 }
2119 2122
2123 num_processors++;
2124
2120 /* 2125 /*
2121 * Validate version 2126 * Validate version
2122 */ 2127 */