diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2017-01-24 22:00:16 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2017-01-24 22:00:16 +0000 |
commit | 736ff8c3967babd610845c11516a17f203a18622 (patch) | |
tree | 6686c5fd9723c6808c9e99ed1d294bd1696d8d56 /sys/kern | |
parent | 543b2f425d27540436623c7b54b101ea403e44a5 (diff) | |
download | src-736ff8c3967babd610845c11516a17f203a18622.tar.gz src-736ff8c3967babd610845c11516a17f203a18622.zip |
hwpmc: partially depessimize munmap handling if the module is not loaded
HWPMC_HOOKS is enabled in GENERIC and triggers some work avoidable in the
common (module not loaded) case.
In particular this avoids permission checks + lock downgrade
singlethreaded and in cases were an executable mapping is found the pmc
sx lock is no longer bounced.
Note this is a band aid.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=312724
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions