diff options
author | jeff <jeff@FreeBSD.org> | 2009-01-27 07:29:37 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2009-01-27 07:29:37 +0000 |
commit | ca96799f52af167cdf4c406447ad2a91231aabde (patch) | |
tree | 9db3173a97c344f1ba6a2b5482b1a247d431ca14 /sys/dev/hwpmc/hwpmc_intel.c | |
parent | cabe8a03df5a5eb90a10202fabf00e8670968d3e (diff) | |
download | FreeBSD-src-ca96799f52af167cdf4c406447ad2a91231aabde.zip FreeBSD-src-ca96799f52af167cdf4c406447ad2a91231aabde.tar.gz |
- Add support for nehalem/corei7 cpus. This supports all of the core
counters defined in the reference manual. It does not support the
'uncore' events.
Reviewed by: jkoshy
Sponsored by: Nokia
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_intel.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_intel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_intel.c b/sys/dev/hwpmc/hwpmc_intel.c index 49031c3..cb2834f 100644 --- a/sys/dev/hwpmc/hwpmc_intel.c +++ b/sys/dev/hwpmc/hwpmc_intel.c @@ -130,6 +130,10 @@ pmc_intel_initialize(void) cputype = PMC_CPU_INTEL_ATOM; nclasses = 3; break; + case 0x1A: + cputype = PMC_CPU_INTEL_COREI7; + nclasses = 3; + break; } break; #if defined(__i386__) || defined(__amd64__) @@ -169,6 +173,7 @@ pmc_intel_initialize(void) case PMC_CPU_INTEL_CORE: case PMC_CPU_INTEL_CORE2: case PMC_CPU_INTEL_CORE2EXTREME: + case PMC_CPU_INTEL_COREI7: error = pmc_core_initialize(pmc_mdep, ncpus); break; |