Author: kib
Date: Sun Aug 30 18:02:57 2015
New Revision: 287310
URL: https://svnweb.freebsd.org/changeset/base/287310

Log:
  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

Modified:
  head/sys/kern/ksched.c

Modified: head/sys/kern/ksched.c
==============================================================================
--- head/sys/kern/ksched.c      Sun Aug 30 17:58:11 2015        (r287309)
+++ head/sys/kern/ksched.c      Sun Aug 30 18:02:57 2015        (r287310)
@@ -229,7 +229,7 @@ ksched_get_priority_max(struct ksched *k
        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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to