diff options
author | jhb <jhb@FreeBSD.org> | 2012-01-05 19:02:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-01-05 19:02:52 +0000 |
commit | 0aa01bce09929058be1a68d86b48b1f5d10a09f6 (patch) | |
tree | 24e4ab024899424d91bf43437f2fd3e934289ba0 /sys/kern/kern_resource.c | |
parent | 4ef366671a65893ccd19a3fc76c415ab0d9a25f2 (diff) | |
download | FreeBSD-src-0aa01bce09929058be1a68d86b48b1f5d10a09f6.zip FreeBSD-src-0aa01bce09929058be1a68d86b48b1f5d10a09f6.tar.gz |
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
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index e0bb453..bccabc8 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -497,7 +497,7 @@ rtp_to_pri(struct rtprio *rtp, struct thread *td) 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(); |