Author: avg
Date: Sat Sep 22 21:18:30 2012
New Revision: 240839
URL: http://svn.freebsd.org/changeset/base/240839

Log:
  MFC r240513: sched_ule: fix inverted condition in reporting of priority
  lending via ktr

Modified:
  stable/9/sys/kern/sched_ule.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/sched_ule.c
==============================================================================
--- stable/9/sys/kern/sched_ule.c       Sat Sep 22 21:14:53 2012        
(r240838)
+++ stable/9/sys/kern/sched_ule.c       Sat Sep 22 21:18:30 2012        
(r240839)
@@ -1647,7 +1647,7 @@ sched_thread_priority(struct thread *td,
            "prio:%d", td->td_priority, "new prio:%d", prio,
            KTR_ATTR_LINKED, sched_tdname(curthread));
        SDT_PROBE3(sched, , , change_pri, td, td->td_proc, prio);
-       if (td != curthread && prio > td->td_priority) {
+       if (td != curthread && prio < td->td_priority) {
                KTR_POINT3(KTR_SCHED, "thread", sched_tdname(curthread),
                    "lend prio", "prio:%d", td->td_priority, "new prio:%d",
                    prio, KTR_ATTR_LINKED, sched_tdname(td));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to