HomeFreeBSD

hwpmc: don't validate capabilities in allocation method

Description

hwpmc: don't validate capabilities in allocation method

These checks were inconsistently applied across the various hwpmc
classes. The condition is already checked by the generic code in
hwpmc_mod.c, so remove them.

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

(cherry picked from commit 0e78510b75497d183ab1aafbd99ff1031798bd84)

Details

Provenance
mhorneAuthored on Aug 30 2021, 5:03 PM
mavCommitted on Jul 5 2022, 4:39 PM
Differential Revision
D31388: hwpmc: don't validate capabilities in allocation method
Parents
rG1e8f338d7f22: hwpmc: consistently validate PMC class in allocation method
Branches
Unknown
Tags
Unknown