diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-11-11 13:11:29 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-11-11 13:11:29 +0000 |
commit | 8cc5d384d88e5bd2acefe284746ba3b8065b59e4 (patch) | |
tree | debd9ce37ead5f97279927f8a5b58bd938936fe7 /sys/kern/sched_4bsd.c | |
parent | 899b88ba12794376926b90877a0fc40420e46843 (diff) | |
download | FreeBSD-src-8cc5d384d88e5bd2acefe284746ba3b8065b59e4.zip FreeBSD-src-8cc5d384d88e5bd2acefe284746ba3b8065b59e4.tar.gz |
Unbreak userland priority inheriting in NO_KSE case.
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r-- | sys/kern/sched_4bsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 53fca8a..b085a14 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -1138,7 +1138,8 @@ sched_user_prio(struct thread *td, u_char prio) kg->kg_user_pri = prio; #else td->td_base_user_pri = prio; - + if (td->td_flags & TDF_UBORROWING && td->td_user_pri <= prio) + return; oldprio = td->td_user_pri; td->td_user_pri = prio; #endif |