diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2005-07-03 16:33:22 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2005-07-03 16:33:22 +0000 |
commit | f670acbc9ddb968f93e3b3a113ba0a736b812932 (patch) | |
tree | 605437fce3b297ecc571579794f61823b93d1c80 /sys/dev/hwpmc | |
parent | a830c4a47a92bb0f10da1d001467e168f41d519f (diff) | |
download | FreeBSD-src-f670acbc9ddb968f93e3b3a113ba0a736b812932.zip FreeBSD-src-f670acbc9ddb968f93e3b3a113ba0a736b812932.tar.gz |
- Update the CPU version check to recognize P4/EMT64 CPUs. [1]
- Allow libpmc(3) to support P4/EMT64 PMCs on the amd64 architecture
and AMD K8 PMCs on the i386. [2]
Submitted by: ps [1]
Pointy hat: myself [2]
Approved by: re (scottl)
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c index 5256a1a..089a63e 100644 --- a/sys/dev/hwpmc/hwpmc_x86.c +++ b/sys/dev/hwpmc/hwpmc_x86.c @@ -91,7 +91,7 @@ pmc_intel_initialize(void) #if defined(__i386__) || defined(__amd64__) case 0xF00: /* P4 */ model = ((cpu_id & 0xF0000) >> 12) | ((cpu_id & 0xF0) >> 4); - if (model >= 0 && model <= 3) /* known models */ + if (model >= 0 && model <= 4) /* known models */ cputype = PMC_CPU_INTEL_PIV; break; } |