Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode.

PR:		kern/93773
This commit is contained in:
jkoshy 2006-02-27 14:25:32 +00:00
parent 3822005cd3
commit 38bcf38e8e

View File

@ -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 */