1 #include <linux/init.h>
4 #include <asm/cpufeature.h>
5 #include <asm/processor.h>
7 void __cpuinit
early_init_centaur(struct cpuinfo_x86
*c
)
9 if (c
->x86
== 0x6 && c
->x86_model
>= 0xf)
10 set_cpu_cap(c
, X86_FEATURE_CONSTANT_TSC
);
13 void __cpuinit
init_centaur(struct cpuinfo_x86
*c
)
18 n
= c
->extended_cpuid_level
;
19 if (n
>= 0x80000008) {
20 unsigned eax
= cpuid_eax(0x80000008);
21 c
->x86_virt_bits
= (eax
>> 8) & 0xff;
22 c
->x86_phys_bits
= eax
& 0xff;
25 if (c
->x86
== 0x6 && c
->x86_model
>= 0xf) {
26 c
->x86_cache_alignment
= c
->x86_clflush_size
* 2;
27 set_cpu_cap(c
, X86_FEATURE_CONSTANT_TSC
);
28 set_cpu_cap(c
, X86_FEATURE_REP_GOOD
);
30 set_cpu_cap(c
, X86_FEATURE_LFENCE_RDTSC
);
This page took 0.033416 seconds and 6 git commands to generate.