summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:54:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-13 00:54:10 +0000
commitdbade675fdd1f84f620d0cda54caf0f23953733c (patch)
tree72a2add154442414455c9dc8983f2e28277e505d /nuttx/configs
parent3f719364f834d32d2a4b14445a5178ac7d1326ef (diff)
downloadpx4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.gz
px4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.tar.bz2
px4-nuttx-dbade675fdd1f84f620d0cda54caf0f23953733c.zip
Add test for CONFIG_SEM_PREALLOCHOLDERS > 0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1597 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/README.txt6
-rw-r--r--nuttx/configs/sim/ostest/defconfig8
2 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt
index e6b656dc8..f6f12d4e4 100644
--- a/nuttx/configs/README.txt
+++ b/nuttx/configs/README.txt
@@ -207,6 +207,12 @@ defconfig -- This is a configuration file similar to the Linux
are only using semaphores as mutexes (only one holder) OR
if no more than two threads participate using a counting
semaphore.
+ CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled,
+ then this setting is the maximum number of higher priority
+ threads (minus 1) than can be waiting for another thread
+ to release a count on a semaphore. This value may be set
+ to zero if no more than one thread is expected to wait for
+ a semaphore.
The following can be used to disable categories of APIs supported
by the OS. If the compiler supports weak functions, then it
diff --git a/nuttx/configs/sim/ostest/defconfig b/nuttx/configs/sim/ostest/defconfig
index 32823d716..ed95bb8a3 100644
--- a/nuttx/configs/sim/ostest/defconfig
+++ b/nuttx/configs/sim/ostest/defconfig
@@ -93,6 +93,11 @@ CONFIG_ARCH_BOARD_SIM=y
# is disabled OR if you are only using semaphores as mutexes (only
# one holder) OR if no more than two threads participate using a
# counting semaphore.
+# CONFIG_SEM_NNESTPRIO. If priority inheritance is enabled, then this
+# setting is the maximum number of higher priority threads (minus 1)
+# than can be waiting for another thread to release a count on a
+# semaphore. This value may be set to zero if no more than one
+# thread is expected to wait for a semaphore.
#
CONFIG_EXAMPLE=ostest
CONFIG_DEBUG=y
@@ -110,7 +115,8 @@ CONFIG_DEV_CONSOLE=y
CONFIG_DEV_LOWCONSOLE=n
CONFIG_MUTEX_TYPES=y
CONFIG_PRIORITY_INHERITANCE=n
-CONFIG_SEM_PREALLOCHOLDERS=3
+CONFIG_SEM_PREALLOCHOLDERS=0
+CONFIG_SEM_NNESTPRIO=0
#
# The following can be used to disable categories of