Merge branch 'x86-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / x86 / kernel / cpu / intel.c
index f380b61d9a7abec93c239c05d6bc59ba69e81045..fcd484d2bb034a4533d3c4355d3ace82c92060dd 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/msr.h>
 #include <asm/bugs.h>
 #include <asm/cpu.h>
+#include <asm/intel-family.h>
 
 #ifdef CONFIG_X86_64
 #include <linux/topology.h>
@@ -508,6 +509,10 @@ static void init_intel(struct cpuinfo_x86 *c)
            (c->x86_model == 29 || c->x86_model == 46 || c->x86_model == 47))
                set_cpu_bug(c, X86_BUG_CLFLUSH_MONITOR);
 
+       if (c->x86 == 6 && boot_cpu_has(X86_FEATURE_MWAIT) &&
+               ((c->x86_model == INTEL_FAM6_ATOM_GOLDMONT)))
+               set_cpu_bug(c, X86_BUG_MONITOR);
+
 #ifdef CONFIG_X86_64
        if (c->x86 == 15)
                c->x86_cache_alignment = c->x86_clflush_size * 2;