aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-04-27 11:44:13 -0400
committerRobert Richter <robert.richter@amd.com>2009-05-08 05:06:33 -0400
commit6adf406f0a0eaf37251018d15f51e93f5b538ee6 (patch)
treec46871a6916a64c1e9e6844bdd10efbeaadb6102 /arch
parent1f3d7b60691993d8d368d8dd7d5d85871d41e8f5 (diff)
oprofile: add support for Core i7 and Atom
The registers are about the same as other Family 6 CPUs so we only need to add detection. I'm not completely happy with calling Nehalem Core i7 because there will be undoubtedly other Nehalem based CPUs in the future with different marketing names, but it's the best we got for now. Requires updated oprofile userland for the new event files. If you don't want to update right now you can also use oprofile.force_arch_perfmon=1 (added in the next patch) with 0.9.4 Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/oprofile/nmi_int.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index f472c0c48a3e..3308147182ae 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -417,6 +417,13 @@ static int __init ppro_init(char **cpu_type)
417 case 15: case 23: 417 case 15: case 23:
418 *cpu_type = "i386/core_2"; 418 *cpu_type = "i386/core_2";
419 break; 419 break;
420 case 26:
421 arch_perfmon_setup_counters();
422 *cpu_type = "i386/core_i7";
423 break;
424 case 28:
425 *cpu_type = "i386/atom";
426 break;
420 default: 427 default:
421 /* Unknown */ 428 /* Unknown */
422 return 0; 429 return 0;