HomeFreeBSD

hwpmc: split out PMC_OP_PMCRELEASE

Description

hwpmc: split out PMC_OP_PMCRELEASE

Split out the functional logic from the syscall handler into a helper
function. This keeps it separate from the syscall control-flow logic,
resulting in better readability overall. It also wins back a level of
indentation.

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

Details

Provenance
mhorneAuthored on Jun 14 2023, 4:33 PM
Reviewer
jkoshy
Differential Revision
D40293: hwpmc: split out PMC_OP_PMCRELEASE
Parents
rGc514a571af74: hwpmc: split out PMC_OP_PMCALLOCATE
Branches
Unknown
Tags
Unknown