svn commit: r287310 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sun Aug 30 18:02:58 UTC 2015


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;


More information about the svn-src-head mailing list