Apply the fix from r232612 to fixed function counters.
Reviewed by: emaste MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7397
This commit is contained in:
parent
af8ee1391d
commit
1f095f7051
@ -365,7 +365,7 @@ iaf_read_pmc(int cpu, int ri, pmc_value_t *v)
|
||||
if (PMC_IS_SAMPLING_MODE(PMC_TO_MODE(pm)))
|
||||
*v = iaf_perfctr_value_to_reload_count(tmp);
|
||||
else
|
||||
*v = tmp;
|
||||
*v = tmp & ((1ULL << core_iaf_width) - 1);
|
||||
|
||||
PMCDBG4(MDP,REA,1, "iaf-read cpu=%d ri=%d msr=0x%x -> v=%jx", cpu, ri,
|
||||
IAF_RI_TO_MSR(ri), *v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user