summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-08-04 20:18:45 +0000
committerjhb <jhb@FreeBSD.org>2004-08-04 20:18:45 +0000
commitc75eeac1dfdfc56d2aadab24b5ff9a35f2c42d46 (patch)
tree6b816a946ea3b88a6556df9bc12b49efeb2f2c7d /sys/kern/kern_synch.c
parent1f29360fadc7c072b586a85e336874c798f0b701 (diff)
downloadFreeBSD-src-c75eeac1dfdfc56d2aadab24b5ff9a35f2c42d46.zip
FreeBSD-src-c75eeac1dfdfc56d2aadab24b5ff9a35f2c42d46.tar.gz
Cache the value of curthread in the _get_sleep_lock() and _get_spin_lock()
macros and pass the value to the associated _mtx_*() functions to avoid more curthread dereferences in the function implementations. This provided a very modest perf improvement in some benchmarks. Suggested by: rwatson Tested by: scottl
Diffstat (limited to 'sys/kern/kern_synch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud