diff options
author | Robert Richter <robert.richter@amd.com> | 2009-01-11 07:01:16 -0500 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-06-11 13:41:50 -0400 |
commit | d20f24c66011f8a397bca6c5d1a6a7c7e612d2d7 (patch) | |
tree | d4eed3fecba2c95f97151c0b92938613e93cc3e1 /arch/x86/oprofile | |
parent | 9063759540daac40cc1f402f83a3be6b489f8583 (diff) |
x86/oprofile: simplify AMD cpu init code
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index dd8515301fbf..ae0ab03959b4 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -460,27 +460,26 @@ int __init op_nmi_init(struct oprofile_operations *ops) | |||
460 | /* Needs to be at least an Athlon (or hammer in 32bit mode) */ | 460 | /* Needs to be at least an Athlon (or hammer in 32bit mode) */ |
461 | 461 | ||
462 | switch (family) { | 462 | switch (family) { |
463 | default: | ||
464 | return -ENODEV; | ||
465 | case 6: | 463 | case 6: |
466 | model = &op_amd_spec; | ||
467 | cpu_type = "i386/athlon"; | 464 | cpu_type = "i386/athlon"; |
468 | break; | 465 | break; |
469 | case 0xf: | 466 | case 0xf: |
470 | model = &op_amd_spec; | 467 | /* |
471 | /* Actually it could be i386/hammer too, but give | 468 | * Actually it could be i386/hammer too, but |
472 | user space an consistent name. */ | 469 | * give user space an consistent name. |
470 | */ | ||
473 | cpu_type = "x86-64/hammer"; | 471 | cpu_type = "x86-64/hammer"; |
474 | break; | 472 | break; |
475 | case 0x10: | 473 | case 0x10: |
476 | model = &op_amd_spec; | ||
477 | cpu_type = "x86-64/family10"; | 474 | cpu_type = "x86-64/family10"; |
478 | break; | 475 | break; |
479 | case 0x11: | 476 | case 0x11: |
480 | model = &op_amd_spec; | ||
481 | cpu_type = "x86-64/family11h"; | 477 | cpu_type = "x86-64/family11h"; |
482 | break; | 478 | break; |
479 | default: | ||
480 | return -ENODEV; | ||
483 | } | 481 | } |
482 | model = &op_amd_spec; | ||
484 | break; | 483 | break; |
485 | 484 | ||
486 | case X86_VENDOR_INTEL: | 485 | case X86_VENDOR_INTEL: |