aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/systemlib.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-10-03 23:13:20 -0700
committerpx4dev <px4@purgatory.org>2012-10-03 23:13:20 -0700
commitdfae108e6aff6e77eb05def50d99fb5c6d2c28c8 (patch)
tree57478848a3c87b66978eef5ae986882aed93b598 /apps/systemlib/systemlib.h
parent216aa20ac278c55931d618bb2ebf8b7bc1a3614b (diff)
downloadpx4-firmware-dfae108e6aff6e77eb05def50d99fb5c6d2c28c8.tar.gz
px4-firmware-dfae108e6aff6e77eb05def50d99fb5c6d2c28c8.tar.bz2
px4-firmware-dfae108e6aff6e77eb05def50d99fb5c6d2c28c8.zip
Go back to the FIFO scheduler for now, as we don't have time to shake out the RR scheduler changeover just yet.
Make the "default" scheduler a centralized definition so that changes are easier in future.
Diffstat (limited to 'apps/systemlib/systemlib.h')
-rw-r--r--apps/systemlib/systemlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/systemlib/systemlib.h b/apps/systemlib/systemlib.h
index da1524435..997f40ded 100644
--- a/apps/systemlib/systemlib.h
+++ b/apps/systemlib/systemlib.h
@@ -50,6 +50,13 @@ __EXPORT int reboot(void);
/** Sends SIGUSR1 to all processes */
__EXPORT void killall(void);
+/** Default scheduler type */
+#if CONFIG_RR_INTERVAL > 0
+# define SCHED_DEFAULT SCHED_RR
+#else
+# define SCHED_DEFAULT SCHED_FIFO
+#endif
+
/** Starts a task and performs any specific accounting, scheduler setup, etc. */
__EXPORT int task_spawn(const char *name,
int priority,