summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-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 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
OpenPOWER on IntegriCloud