x86/cpu, x86/pti: Do not enable PTI on AMD processors
[pandora-kernel.git] / arch / x86 / kernel / cpu / common.c
index f33ea66..75bdfa7 100644 (file)
@@ -767,6 +767,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
 
        if (this_cpu->c_bsp_init)
                this_cpu->c_bsp_init(c);
+
+       if (c->x86_vendor != X86_VENDOR_AMD)
+               setup_force_cpu_bug(X86_BUG_CPU_INSECURE);
 }
 
 void __init early_cpu_init(void)