Author: jhb
Date: Thu Jan  5 19:02:52 2012
New Revision: 229622
URL: http://svn.freebsd.org/changeset/base/229622

Log:
  Fix a logic bug in change 228207 in the check for a thread's new user
  priority being a realtime priority.
  
  MFC after:    3 days

Modified:
  head/sys/kern/kern_resource.c

Modified: head/sys/kern/kern_resource.c
==============================================================================
--- head/sys/kern/kern_resource.c       Thu Jan  5 19:00:36 2012        
(r229621)
+++ head/sys/kern/kern_resource.c       Thu Jan  5 19:02:52 2012        
(r229622)
@@ -497,7 +497,7 @@ rtp_to_pri(struct rtprio *rtp, struct th
        oldpri = td->td_user_pri;
        sched_user_prio(td, newpri);
        if (td->td_user_pri != oldpri && (td == curthread ||
-           td->td_priority == oldpri || td->td_user_pri >= PRI_MAX_REALTIME))
+           td->td_priority == oldpri || td->td_user_pri <= PRI_MAX_REALTIME))
                sched_prio(td, td->td_user_pri);
        if (TD_ON_UPILOCK(td) && oldpri != newpri) {
                critical_enter();
_______________________________________________
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