From ca96799f52af167cdf4c406447ad2a91231aabde Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 27 Jan 2009 07:29:37 +0000 Subject: - 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 --- sys/dev/hwpmc/hwpmc_intel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev/hwpmc/hwpmc_intel.c') 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; -- cgit v1.1