diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index c1caefc82e62..017c600e05ab 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -761,6 +761,12 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c) | |||
761 | if (this_cpu->c_identify) | 761 | if (this_cpu->c_identify) |
762 | this_cpu->c_identify(c); | 762 | this_cpu->c_identify(c); |
763 | 763 | ||
764 | /* Clear/Set all flags overriden by options, after probe */ | ||
765 | for (i = 0; i < NCAPINTS; i++) { | ||
766 | c->x86_capability[i] &= ~cpu_caps_cleared[i]; | ||
767 | c->x86_capability[i] |= cpu_caps_set[i]; | ||
768 | } | ||
769 | |||
764 | #ifdef CONFIG_X86_64 | 770 | #ifdef CONFIG_X86_64 |
765 | c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); | 771 | c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); |
766 | #endif | 772 | #endif |