x86: add clflush before monitor for Intel 7400 series
[linux-2.6/mini2440.git] / arch / x86 / kernel / cpu / centaur_64.c
bloba1625f5a1e78d41f607ceae9652dc8711c491712
1 #include <linux/init.h>
2 #include <linux/smp.h>
4 #include <asm/cpufeature.h>
5 #include <asm/processor.h>
7 #include "cpu.h"
9 static void __cpuinit early_init_centaur(struct cpuinfo_x86 *c)
11 if (c->x86 == 0x6 && c->x86_model >= 0xf)
12 set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC);
14 set_cpu_cap(c, X86_FEATURE_SYSENTER32);
17 static void __cpuinit init_centaur(struct cpuinfo_x86 *c)
19 early_init_centaur(c);
21 if (c->x86 == 0x6 && c->x86_model >= 0xf) {
22 c->x86_cache_alignment = c->x86_clflush_size * 2;
23 set_cpu_cap(c, X86_FEATURE_REP_GOOD);
25 set_cpu_cap(c, X86_FEATURE_LFENCE_RDTSC);
28 static struct cpu_dev centaur_cpu_dev __cpuinitdata = {
29 .c_vendor = "Centaur",
30 .c_ident = { "CentaurHauls" },
31 .c_early_init = early_init_centaur,
32 .c_init = init_centaur,
33 .c_x86_vendor = X86_VENDOR_CENTAUR,
36 cpu_dev_register(centaur_cpu_dev);