x86/mm: Disable PCID on 32-bit kernels
[pandora-kernel.git] / arch / x86 / kernel / cpu / bugs.c
index 46674fb..ad95476 100644 (file)
@@ -159,6 +159,14 @@ static void __init check_config(void)
 
 void __init check_bugs(void)
 {
+#ifdef CONFIG_X86_32
+       /*
+        * Regardless of whether PCID is enumerated, the SDM says
+        * that it can't be enabled in 32-bit mode.
+        */
+       setup_clear_cpu_cap(X86_FEATURE_PCID);
+#endif
+
        identify_boot_cpu();
 #ifndef CONFIG_SMP
        printk(KERN_INFO "CPU: ");