aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-11-11 13:11:29 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-11-11 13:11:29 +0000
commit5a215147270fe2e231aa772e6c7adca2cb40d4c1 (patch)
treedebd9ce37ead5f97279927f8a5b58bd938936fe7 /sys
parent9741b9d59b0ef6005c08830569f461508ff62cd1 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/sched_4bsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 53fca8a777d4..b085a14d34a3 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