diff options
-rw-r--r-- | kern/thread.c | 8 |
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 |