diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-09-15 02:24:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-15 02:24:53 -0400 |
commit | d4b80afbba49e968623330f1336da8c724da8aad (patch) | |
tree | a9478bd77d8b001a6a7119328d34e9666d7bfe93 /arch/x86/kernel/apic/apic.c | |
parent | fcd709ef20a9d83bdb7524d27cd6719dac8690a0 (diff) | |
parent | 4cea8776571b18db7485930cb422faa739580c8c (diff) |
Merge branch 'linus' into x86/asm, to pick up recent fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 7 |
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 | */ |