Commit 988781dc authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: use setup_clear_cpu_cap with disable_apic, fix

beauty fix: /proc/cpuinfo will still show apic feature even if
we booted up with it disabled.
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5171c304
...@@ -680,7 +680,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -680,7 +680,7 @@ void __init setup_arch(char **cmdline_p)
#ifdef CONFIG_X86_LOCAL_APIC #ifdef CONFIG_X86_LOCAL_APIC
disable_apic = 1; disable_apic = 1;
#endif #endif
clear_cpu_cap(&boot_cpu_data, X86_FEATURE_APIC); setup_clear_cpu_cap(X86_FEATURE_APIC);
} }
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
......
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