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

PR:		kern/93773
This commit is contained in:
Joseph Koshy 2006-02-27 14:25:32 +00:00
parent 82967ff0b8
commit 5943a2a3e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156065

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