diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2006-02-27 14:25:32 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2006-02-27 14:25:32 +0000 |
commit | 38bcf38e8ed377df49a5c02ef7a7102bf85e35e2 (patch) | |
tree | 10dde6495aee8a019015df5cca286ca7e09a116f /usr.sbin/pmccontrol | |
parent | 3822005cd36df85e1b4a87c4012224265ee9e7da (diff) | |
download | FreeBSD-src-38bcf38e8ed377df49a5c02ef7a7102bf85e35e2.zip FreeBSD-src-38bcf38e8ed377df49a5c02ef7a7102bf85e35e2.tar.gz |
Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode.
PR: kern/93773
Diffstat (limited to 'usr.sbin/pmccontrol')
-rw-r--r-- | usr.sbin/pmccontrol/pmccontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index 553daba..49a1de7 100644 --- a/usr.sbin/pmccontrol/pmccontrol.c +++ b/usr.sbin/pmccontrol/pmccontrol.c @@ -237,7 +237,7 @@ pmcc_do_list_state(void) ncpu = pc->pm_ncpu; for (c = cpu = 0; cpu < ncpu; cpu++) { -#if i386 +#if defined(__i386__) || defined(__amd64__) if (pc->pm_cputype == PMC_CPU_INTEL_PIV && (logical_cpus_mask & (1 << cpu))) continue; /* skip P4-style 'logical' cpus */ |