diff options
Diffstat (limited to 'arch/x86/kernel/cpu/centaur_64.c')
-rw-r--r-- | arch/x86/kernel/cpu/centaur_64.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/cpu/centaur_64.c b/arch/x86/kernel/cpu/centaur_64.c index 2026d2119cdb..1d181c40e2e1 100644 --- a/arch/x86/kernel/cpu/centaur_64.c +++ b/arch/x86/kernel/cpu/centaur_64.c | |||
@@ -16,16 +16,6 @@ static void __cpuinit early_init_centaur(struct cpuinfo_x86 *c) | |||
16 | 16 | ||
17 | static void __cpuinit init_centaur(struct cpuinfo_x86 *c) | 17 | static void __cpuinit init_centaur(struct cpuinfo_x86 *c) |
18 | { | 18 | { |
19 | /* Cache sizes */ | ||
20 | unsigned n; | ||
21 | |||
22 | n = c->extended_cpuid_level; | ||
23 | if (n >= 0x80000008) { | ||
24 | unsigned eax = cpuid_eax(0x80000008); | ||
25 | c->x86_virt_bits = (eax >> 8) & 0xff; | ||
26 | c->x86_phys_bits = eax & 0xff; | ||
27 | } | ||
28 | |||
29 | if (c->x86 == 0x6 && c->x86_model >= 0xf) { | 19 | if (c->x86 == 0x6 && c->x86_model >= 0xf) { |
30 | c->x86_cache_alignment = c->x86_clflush_size * 2; | 20 | c->x86_cache_alignment = c->x86_clflush_size * 2; |
31 | set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); | 21 | set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); |