Commit 8fd591d7 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Hack to disable clustered mode on AMD systems

Hack to disable clustered mode on AMD systems

Make sure AMD big flat apic mode is not confused with clustered APIC 
mode. Ugly hack, but no better way found.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9245af41
...@@ -41,6 +41,12 @@ void __init clustered_apic_check(void) ...@@ -41,6 +41,12 @@ void __init clustered_apic_check(void)
u8 id; u8 id;
u8 cluster_cnt[NUM_APIC_CLUSTERS]; u8 cluster_cnt[NUM_APIC_CLUSTERS];
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
/* AMD always uses flat mode right now */
genapic = &apic_flat;
goto print;
}
memset(cluster_cnt, 0, sizeof(cluster_cnt)); memset(cluster_cnt, 0, sizeof(cluster_cnt));
for (i = 0; i < NR_CPUS; i++) { for (i = 0; i < NR_CPUS; i++) {
...@@ -71,6 +77,7 @@ void __init clustered_apic_check(void) ...@@ -71,6 +77,7 @@ void __init clustered_apic_check(void)
else else
genapic = &apic_cluster; genapic = &apic_cluster;
print:
printk(KERN_INFO "Setting APIC routing to %s\n", genapic->name); printk(KERN_INFO "Setting APIC routing to %s\n", genapic->name);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment