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.
Details
Details
- Reviewers
jkoshy gnn luporl - Group Reviewers
pmc - Commits
- rG1b7d148ed773: hwpmc: pass pmc pointer to more class methods
rG39f92a76a99a: hwpmc: pass pmc pointer to more class methods
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
FYI, the pm_id field in a struct pmc contains the CPU and 'row index' for the PMC, so we could potentially drop the cpu and ri fields in a future change.