HomeFreeBSD

hwpmc: tidy pcd_finalize methods

Description

hwpmc: tidy pcd_finalize methods

Make them a little bit more consistent with one another in terms of what
is done:

  • Add/reduce assertions to what is most useful: a loop to ensure pcpu_fini freed everything
  • Add PMCDBG trace entries

The exception is the dmc620/cmn600 classes, which behave a little
differently, so leave them untouched.

Reviewed by: jkoshy
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41270

Details

Provenance
mhorneAuthored on Oct 18 2023, 5:50 PM
Reviewer
jkoshy
Differential Revision
D41270: hwpmc: tidy pcd_finalize methods
Parents
rG3d4424154617: freebsd-update: allow user to break out of conflict resolution loop
Branches
Unknown
Tags
Unknown