HomeFreeBSD

libpmc: make pmc_pmu_pmcallocate() machine-independent

Description

libpmc: make pmc_pmu_pmcallocate() machine-independent

Have it call the platform-dependent version. For better layering, move
the reset logic inside the new function. This is mainly to facilitate an
upcoming change.

Reviewed by: jkoshy
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40752

(cherry picked from commit 45dcc17e2fb8f0f9838ba167b311f271a08fcea9)
(cherry picked from commit 196bb0e152cf2d3a0ba61bda8a2d09c8107a809a)

Details

Provenance
mhorneAuthored on Jun 19 2023, 10:32 PM
Reviewer
jkoshy
Differential Revision
D40752: libpmc: make pmc_pmu_pmcallocate() machine-independent
Parents
rGaaeaba324335: vfs: fix reference counting/locking on LK_UPGRADE error
Branches
Unknown
Tags
Unknown