cvs commit: src/sys/kern kern_mutex.c src/sys/sys mutex.h
John Baldwin
jhb at FreeBSD.org
Wed Aug 4 13:18:45 PDT 2004
jhb 2004-08-04 20:18:45 UTC
FreeBSD src repository
Modified files:
sys/kern kern_mutex.c
sys/sys mutex.h
Log:
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
Revision Changes Path
1.147 +5 -4 src/sys/kern/kern_mutex.c
1.73 +15 -9 src/sys/sys/mutex.h
More information about the cvs-src
mailing list