diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c index 7031c40a0577..3c2ecb37867f 100644 --- a/sys/kern/ksched.c +++ b/sys/kern/ksched.c @@ -270,7 +270,7 @@ ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) break; case SCHED_OTHER: - *prio = PRIO_MAX; + *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; break; default: @@ -293,7 +293,7 @@ ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) break; case SCHED_OTHER: - *prio = PRIO_MIN; + *prio = 0; break; default: diff --git a/sys/posix4/ksched.c b/sys/posix4/ksched.c index 7031c40a0577..3c2ecb37867f 100644 --- a/sys/posix4/ksched.c +++ b/sys/posix4/ksched.c @@ -270,7 +270,7 @@ ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) break; case SCHED_OTHER: - *prio = PRIO_MAX; + *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; break; default: @@ -293,7 +293,7 @@ ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) break; case SCHED_OTHER: - *prio = PRIO_MIN; + *prio = 0; break; default: