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 Passed - Unit
No Test Coverage - Build Status
Buildable 51317 Build 48208: arc lint + arc unit
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.