summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-02-13 23:10:25 +0100
committerRichard Braun <rbraun@sceen.net>2017-02-13 23:10:25 +0100
commitbd8cf49f471162fa2a5d5556014aeafae4cff644 (patch)
tree0d3b3447f1f94f644bbb2a0704ad0a5fadf8fb12 /kern/thread.c
parent30e1c42921229143c7db7f80b9677c3fb24f36b1 (diff)
kern/thread: make the global priority of fair-scheduling threads equal
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 49adf828..eb6f11a5 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -144,8 +144,11 @@
* Global priorities are only used to determine which of two threads
* has the higher priority, and should only matter for priority
* inheritance.
+ *
+ * In the current configuration, all fair-scheduling threads have the
+ * same global priority.
*/
-#define THREAD_SCHED_GLOBAL_PRIO_RT (THREAD_SCHED_FS_PRIO_MAX + 2)
+#define THREAD_SCHED_GLOBAL_PRIO_RT 2
#define THREAD_SCHED_GLOBAL_PRIO_FS 1
#define THREAD_SCHED_GLOBAL_PRIO_IDLE 0
@@ -1154,7 +1157,8 @@ thread_sched_fs_set_priority(struct thread *thread, unsigned short priority)
static unsigned int
thread_sched_fs_get_global_priority(unsigned short priority)
{
- return THREAD_SCHED_GLOBAL_PRIO_FS + priority;
+ (void)priority;
+ return THREAD_SCHED_GLOBAL_PRIO_FS;
}
static void