diff options
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) |