summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-08-30 18:02:57 +0000
committerkib <kib@FreeBSD.org>2015-08-30 18:02:57 +0000
commitb1635150b81a8606b1334f57f776838525381223 (patch)
tree43042b8bf9269bfdaa7a13d69c1dce4b878a3981
parent5b7cf788aa5c84724d5ae0ca54e1044280c685c7 (diff)
downloadFreeBSD-src-b1635150b81a8606b1334f57f776838525381223.zip
FreeBSD-src-b1635150b81a8606b1334f57f776838525381223.tar.gz
Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFO
scheduler types. It was intended to be used there, compare with the min value, and with the test for correctness in ksched_setscheduler(). Note that P1B_PRIO_MAX and RTP_PRIO_MAX do have the same numerical values, the change is cosmetical. Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/kern/ksched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c
index 74ccba7..27aea72 100644
--- a/sys/kern/ksched.c
+++ b/sys/kern/ksched.c
@@ -229,7 +229,7 @@ ksched_get_priority_max(struct ksched *ksched, int policy, int *prio)
switch (policy) {
case SCHED_FIFO:
case SCHED_RR:
- *prio = RTP_PRIO_MAX;
+ *prio = P1B_PRIO_MAX;
break;
case SCHED_OTHER:
*prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE;
OpenPOWER on IntegriCloud