aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-11-15 01:54:44 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-11-15 01:54:44 +0000
commitb77594bbbf280d3dda6cbecdb76502cc5d7f0f69 (patch)
treeac144f91c4684e03d3992ef9b50fd7dc716cea24
parent6b45dbe56c38165cd1af35a4e9b82208c5e7d534 (diff)
Notes
-rw-r--r--sys/kern/sched_4bsd.c2
-rw-r--r--sys/kern/sched_ule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 880078497eb5..7b44e12ef330 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -952,7 +952,7 @@ sched_lend_user_prio_cond(struct thread *td, u_char prio)
goto lend;
if (td->td_user_pri != min(prio, td->td_base_user_pri))
goto lend;
- if (td->td_priority >= td->td_user_pri)
+ if (td->td_priority != td->td_user_pri)
goto lend;
return;
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 78c55a08c90e..49bf3328f3d9 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1900,7 +1900,7 @@ sched_lend_user_prio_cond(struct thread *td, u_char prio)
goto lend;
if (td->td_user_pri != min(prio, td->td_base_user_pri))
goto lend;
- if (td->td_priority >= td->td_user_pri)
+ if (td->td_priority != td->td_user_pri)
goto lend;
return;