From 38bcf38e8ed377df49a5c02ef7a7102bf85e35e2 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Mon, 27 Feb 2006 14:25:32 +0000 Subject: Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode. PR: kern/93773 --- usr.sbin/pmccontrol/pmccontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') 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 */ -- cgit v1.1