Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112691
b: refs/heads/master
c: d25ae38
h: refs/heads/master
i:
  112689: 85c8cd3
  112687: 768754b
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 27, 2008
1 parent 7df14d1 commit 549368a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edb181ac4b0c7c1240503da46349a3fb69af9ef6
refs/heads/master: d25ae38b7e005af03843833bbd811ffe8c5f8cb4
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/genapic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/ctype.h>
#include <linux/init.h>
#include <linux/hardirq.h>
#include <linux/dmar.h>

#include <asm/smp.h>
#include <asm/ipi.h>
Expand All @@ -42,6 +43,11 @@ static struct genapic *apic_probe[] __initdata = {
*/
void __init setup_apic_routing(void)
{
if (genapic == &apic_x2apic_phys || genapic == &apic_x2apic_cluster) {
if (!intr_remapping_enabled)
genapic = &apic_flat;
}

if (genapic == &apic_flat) {
if (max_physical_apicid >= 8)
genapic = &apic_physflat;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/genx2apic_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DEFINE_PER_CPU(u32, x86_cpu_to_logical_apicid);

static int __init x2apic_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
if (cpu_has_x2apic && intr_remapping_enabled)
if (cpu_has_x2apic)
return 1;

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/genx2apic_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ early_param("x2apic_phys", set_x2apic_phys_mode);

static int __init x2apic_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
if (cpu_has_x2apic && intr_remapping_enabled && x2apic_phys)
if (cpu_has_x2apic && x2apic_phys)
return 1;

return 0;
Expand Down

0 comments on commit 549368a

Please sign in to comment.