summaryrefslogtreecommitdiffstats
path: root/sys/conf/NOTES
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-22 16:09:23 +0000
committerjhb <jhb@FreeBSD.org>2007-03-22 16:09:23 +0000
commitec6d5dd10f12c768cbb975d10e8631d80dbaedaf (patch)
tree69d3ab7d12cac26ee972a8c1dc9da19a04dbe951 /sys/conf/NOTES
parentfe8d58a25179cd902bada0d91a0f2921ecd09934 (diff)
downloadFreeBSD-src-ec6d5dd10f12c768cbb975d10e8631d80dbaedaf.zip
FreeBSD-src-ec6d5dd10f12c768cbb975d10e8631d80dbaedaf.tar.gz
- Simplify the #ifdef's for adaptive mutexes and rwlocks by conditionally
defining a macro earlier in the file. - Add NO_ADAPTIVE_RWLOCKS option to disable adaptive spinning for rwlocks.
Diffstat (limited to 'sys/conf/NOTES')
-rw-r--r--sys/conf/NOTES6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 8e2c447..88086cb 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -202,6 +202,12 @@ options SMP # Symmetric MultiProcessor Kernel
# to disable it.
options NO_ADAPTIVE_MUTEXES
+# ADAPTIVE_RWLOCKS changes the behavior of reader/writer locks to spin
+# if the thread that currently owns the rwlock is executing on another
+# CPU. This behaviour is enabled by default, so this option can be used
+# to disable it.
+options NO_ADAPTIVE_RWLOCKS
+
# ADAPTIVE_GIANT causes the Giant lock to also be made adaptive when
# running without NO_ADAPTIVE_MUTEXES. Normally, because Giant is assumed
# to be held for extended periods, contention on Giant will cause a thread
OpenPOWER on IntegriCloud