diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-04-24 00:08:23 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-04-24 00:08:23 +0200 |
commit | 3a4f2e95e91b1b23d5c11190ff2dfc3c048deffb (patch) | |
tree | 685138f00d64b3a88170f80afac534574367a9e8 /kern | |
parent | 862b733dcbeabed8dd545e1c3b3e55bb4e4da52f (diff) |
kern: avoid hardcoding the lowest priority
The number of priorities has been changed from 32 to 50 in
6a234201081156e6d5742e7eeabb68418b518fad.
* kern/syscall_subr.c (thread_depress_priority): Avoid hardcoding the
lowest priority.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/syscall_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/syscall_subr.c b/kern/syscall_subr.c index 3c369ef..6d23462 100644 --- a/kern/syscall_subr.c +++ b/kern/syscall_subr.c @@ -302,8 +302,8 @@ thread_depress_priority( * sched_pri to their lowest possible values. */ thread->depress_priority = thread->priority; - thread->priority = 31; - thread->sched_pri = 31; + thread->priority = NRQS-1; + thread->sched_pri = NRQS-1; if (ticks != 0) set_timeout(&thread->depress_timer, ticks); |