svn commit: r223037 - stable/8/sys/kern

David Xu davidxu at FreeBSD.org
Mon Jun 13 06:32:57 UTC 2011


Author: davidxu
Date: Mon Jun 13 06:32:56 2011
New Revision: 223037
URL: http://svn.freebsd.org/changeset/base/223037

Log:
  MFC r222802:
  Use p4prio_to_tsprio to calculate TS priority instead of using
  p4prio_to_rtpprio which is for RT priority.

Modified:
  stable/8/sys/kern/ksched.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/kern/ksched.c
==============================================================================
--- stable/8/sys/kern/ksched.c	Mon Jun 13 05:34:08 2011	(r223036)
+++ stable/8/sys/kern/ksched.c	Mon Jun 13 06:32:56 2011	(r223037)
@@ -202,7 +202,7 @@ ksched_setscheduler(struct ksched *ksche
 		if (param->sched_priority >= 0 &&
 			param->sched_priority <= (PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE)) {
 			rtp.type = RTP_PRIO_NORMAL;
-			rtp.prio = p4prio_to_rtpprio(param->sched_priority);
+			rtp.prio = p4prio_to_tsprio(param->sched_priority);
 			rtp_to_pri(&rtp, td);
 		} else
 			e = EINVAL;


More information about the svn-src-all mailing list