diff options
Diffstat (limited to 'arch/x86/kernel/cpu/centaur.c')
-rw-r--r-- | arch/x86/kernel/cpu/centaur.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c index e0f45edd6a55..89bfdd9cacc6 100644 --- a/arch/x86/kernel/cpu/centaur.c +++ b/arch/x86/kernel/cpu/centaur.c | |||
@@ -289,7 +289,6 @@ static void __cpuinit init_c3(struct cpuinfo_x86 *c) | |||
289 | if (c->x86_model >= 6 && c->x86_model < 9) | 289 | if (c->x86_model >= 6 && c->x86_model < 9) |
290 | set_cpu_cap(c, X86_FEATURE_3DNOW); | 290 | set_cpu_cap(c, X86_FEATURE_3DNOW); |
291 | 291 | ||
292 | get_model_name(c); | ||
293 | display_cacheinfo(c); | 292 | display_cacheinfo(c); |
294 | } | 293 | } |
295 | 294 | ||
@@ -314,6 +313,16 @@ enum { | |||
314 | EAMD3D = 1<<20, | 313 | EAMD3D = 1<<20, |
315 | }; | 314 | }; |
316 | 315 | ||
316 | static void __cpuinit early_init_centaur(struct cpuinfo_x86 *c) | ||
317 | { | ||
318 | switch (c->x86) { | ||
319 | case 5: | ||
320 | /* Emulate MTRRs using Centaur's MCR. */ | ||
321 | set_cpu_cap(c, X86_FEATURE_CENTAUR_MCR); | ||
322 | break; | ||
323 | } | ||
324 | } | ||
325 | |||
317 | static void __cpuinit init_centaur(struct cpuinfo_x86 *c) | 326 | static void __cpuinit init_centaur(struct cpuinfo_x86 *c) |
318 | { | 327 | { |
319 | 328 | ||
@@ -462,8 +471,10 @@ centaur_size_cache(struct cpuinfo_x86 *c, unsigned int size) | |||
462 | static struct cpu_dev centaur_cpu_dev __cpuinitdata = { | 471 | static struct cpu_dev centaur_cpu_dev __cpuinitdata = { |
463 | .c_vendor = "Centaur", | 472 | .c_vendor = "Centaur", |
464 | .c_ident = { "CentaurHauls" }, | 473 | .c_ident = { "CentaurHauls" }, |
474 | .c_early_init = early_init_centaur, | ||
465 | .c_init = init_centaur, | 475 | .c_init = init_centaur, |
466 | .c_size_cache = centaur_size_cache, | 476 | .c_size_cache = centaur_size_cache, |
477 | .c_x86_vendor = X86_VENDOR_CENTAUR, | ||
467 | }; | 478 | }; |
468 | 479 | ||
469 | cpu_vendor_dev_register(X86_VENDOR_CENTAUR, ¢aur_cpu_dev); | 480 | cpu_dev_register(centaur_cpu_dev); |