Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Aug 2015 18:02:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287310 - head/sys/kern
Message-ID:  <201508301802.t7UI2w1i069311@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508301802.t7UI2w1i069311>