summaryrefslogtreecommitdiff
path: root/nuttx/sched/Kconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-04 00:54:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-04 00:54:09 +0000
commitd8aa30d561322f24cf0eb67f27f41ad9ab52474e (patch)
tree7bfc2aaf9a03320f24991b54a67a1db24e05f100 /nuttx/sched/Kconfig
parented14f7102218c784f1f22649485de262f34a6507 (diff)
downloadpx4-nuttx-d8aa30d561322f24cf0eb67f27f41ad9ab52474e.tar.gz
px4-nuttx-d8aa30d561322f24cf0eb67f27f41ad9ab52474e.tar.bz2
px4-nuttx-d8aa30d561322f24cf0eb67f27f41ad9ab52474e.zip
Add support for multiple work queues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5081 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/Kconfig')
-rw-r--r--nuttx/sched/Kconfig33
1 files changed, 33 insertions, 0 deletions
diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig
index 37ce0ebd6..58d6ead70 100644
--- a/nuttx/sched/Kconfig
+++ b/nuttx/sched/Kconfig
@@ -166,6 +166,39 @@ config SIG_SIGWORK
The signal number that will be used to wake-up the worker thread.
Default: 4
+config SCHED_LPWORK
+ bool "Enable a lower priority worker thread"
+ default n
+ depends on SCHED_WORKQUEUE
+ ---help---
+ If SCHED_WORKQUEUE is defined, then a single work queue is created by
+ default. If SCHED_LPWORK is also defined then an additional, lower-
+ priority work queue will also be created. This lower priority work
+ queue is better suited for more extended processing (such as file system
+ clean-up operations)
+
+config SCHED_LPWORKPRIORITY
+ int "Lower priority worker thread priority"
+ default 192
+ depends on SCHED_LPWORK
+ ---help---
+ The execution priority of the lopwer priority worker thread. Default: 192
+
+config SCHED_LPWORKPERIOD
+ int "Lower priority worker thread period"
+ default 50000
+ depends on SCHED_LPWORK
+ ---help---
+ How often the lower priority worker thread checks for work in units
+ of microseconds. Default: 50*1000 (50 MS).
+
+config SCHED_LPWORKSTACKSIZE
+ int "Lower priority worker thread stack size"
+ default 2048
+ depends on SCHED_LPWORK
+ ---help---
+ The stack size allocated for the lower priority worker thread. Default: 2K.
+
config SCHED_WAITPID
bool "Enable waitpid() API"
default n