diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-23 23:57:04 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-23 23:57:04 +0100 |
commit | 5548178e6c7355c250f2d938e7502040c55228a3 (patch) | |
tree | 9b0f19aeb1d1df22cdd7369c534762c509daa3ec /kern/thread.c | |
parent | e2415706c10859f3e9a3d40b9819e58b83661e4f (diff) |
kern/thread: move private definitions to thread_i.h
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kern/thread.c b/kern/thread.c index 418da9b6..09159f62 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014 Richard Braun. + * Copyright (c) 2012-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -125,6 +125,19 @@ #define THREAD_SUSPEND_PREEMPT_LEVEL 2 /* + * Scheduling classes. + * + * Classes are sorted by order of priority (lower indexes first). The same + * class can apply to several policies. + * + * The idle class is reserved for the per-CPU idle threads. + */ +#define THREAD_SCHED_CLASS_RT 0 +#define THREAD_SCHED_CLASS_TS 1 +#define THREAD_SCHED_CLASS_IDLE 2 +#define THREAD_NR_SCHED_CLASSES 3 + +/* * Default time slice for real-time round-robin scheduling. */ #define THREAD_DEFAULT_RR_TIME_SLICE (HZ / 10) |