summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/ostest/Makefile5
-rw-r--r--nuttx/examples/ostest/roundrobin.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/examples/ostest/Makefile b/nuttx/examples/ostest/Makefile
index 3eeda4f08..adb875932 100644
--- a/nuttx/examples/ostest/Makefile
+++ b/nuttx/examples/ostest/Makefile
@@ -40,7 +40,10 @@ ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = main.c dev_null.c
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
-CSRCS += cancel.c cond.c mutex.c sem.c roundrobin.c barrier.c
+CSRCS += cancel.c cond.c mutex.c sem.c barrier.c
+ifneq ($(CONFIG_RR_INTERVAL),0)
+CSRCS += roundrobin.c
+endif
ifeq ($(CONFIG_MUTEX_TYPES),y)
CSRCS += rmutex.c
endif
diff --git a/nuttx/examples/ostest/roundrobin.c b/nuttx/examples/ostest/roundrobin.c
index 003c6cf6b..061d51f3d 100644
--- a/nuttx/examples/ostest/roundrobin.c
+++ b/nuttx/examples/ostest/roundrobin.c
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory NuttX nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -47,7 +47,10 @@
* Definitions
********************************************************************************/
-/* This number may need to be tuned for different processor speeds */
+/* This number may need to be tuned for different processor speeds. Since these
+ * arrays must be large to very correct SCHED_RR behavior, this test may require
+ * too much memory on many targets.
+ */
/* #define CONFIG_NINTEGERS 32768 Takes forever on 60Mhz ARM7 */