mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode.
PR: kern/93773
This commit is contained in:
parent
82967ff0b8
commit
5943a2a3e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156065
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue