summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:19:47 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:19:47 +0200
commit708d0b41a26907ac83cde41dd5a75b5a2f8f1218 (patch)
tree81fec9b45c052e98b563a93d5b6548e9e7630e34 /arch/x86/kernel/cpu/common.c
parentf1d0d14120a8a6224a8aead925cf4310f48947d5 (diff)
parent9298b815efe500b272e4084ed05eeae7a92b5340 (diff)
downloadop-kernel-dev-708d0b41a26907ac83cde41dd5a75b5a2f8f1218.zip
op-kernel-dev-708d0b41a26907ac83cde41dd5a75b5a2f8f1218.tar.gz
Merge branch 'x86-cpufeature-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cpufeature updates from Ingo Molnar: "This tree includes the following changes: - Introduce DISABLED_MASK to list disabled CPU features, to simplify CPU feature handling and avoid excessive #ifdefs - Remove the lightly used cpu_has_pae() primitive" * 'x86-cpufeature-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86: Add more disabled features x86: Introduce disabled-features x86: Axe the lightly-used cpu_has_pae
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index d8b1166..ef58886 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1398,7 +1398,7 @@ void cpu_init(void)
printk(KERN_INFO "Initializing CPU#%d\n", cpu);
- if (cpu_has_vme || cpu_has_tsc || cpu_has_de)
+ if (cpu_feature_enabled(X86_FEATURE_VME) || cpu_has_tsc || cpu_has_de)
clear_in_cr4(X86_CR4_VME|X86_CR4_PVI|X86_CR4_TSD|X86_CR4_DE);
load_current_idt();
OpenPOWER on IntegriCloud