aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorWojciech Macek <wma@FreeBSD.org>2021-09-20 11:08:32 +0000
committerWojciech Macek <wma@FreeBSD.org>2021-09-23 05:15:42 +0000
commit7bc13692a2d6b33b4e80bb9ad70d5eede6b148af (patch)
tree695b70dc08be4abf2ae414220b610533f74934ac /sys/cam/ctl/ctl_backend.h
parent319b150003001fa09cb4a97452c57340ce42db35 (diff)
downloadsrc-main.tar.gz
src-main.zip
hwpmc: fix performance issuesHEADmain
Differential revision: https://reviews.freebsd.org/D32025 Avoid using atomics as it_wait is guarded by td_lock. Report threshold calculation is done only if at least one PMC hook is installed Fixes: * avoid unnecessary branching (if frame != null ...) by having PMC_HOOK_INSTALLED_ANY condition on the top of them, which should hint the core not to execute speculatively anything which us underneath; * access intr_hwpmc_waiting_report_threshold cacheline only if at least one hook is loaded;
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
0 files changed, 0 insertions, 0 deletions