HomeFreeBSD

hwpmc: pass pmc pointer to more class methods

Description

hwpmc: pass pmc pointer to more class methods

In many cases this avoids an extra lookup, since the callers always have
pm at hand. We can also eliminate several assertions, mostly for pm !=
NULL. The class methods are an internal interface, and the callers
already handle such a scenario. No functional change intended.

Reviewed by: jkoshy
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39915

(cherry picked from commit 39f92a76a99a2ceb747250da4f2d627b9c317f8c)

Details

Provenance
mhorneAuthored on May 5 2023, 10:00 PM
Reviewer
jkoshy
Differential Revision
D39915: hwpmc: pass pmc pointer to more class methods
Parents
rGe6b3aaa3e68d: hwpmc: unused/diagused annotations in tsc class
Branches
Unknown
Tags
Unknown