aboutsummaryrefslogtreecommitdiff
path: root/apps/systemlib/systemlib.h
diff options
context:
space:
mode:
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,