From 304f0afa4ddec12e54ad4c24d272247fc3154e9d Mon Sep 17 00:00:00 2001 From: avg Date: Fri, 14 Sep 2012 19:55:28 +0000 Subject: sched_ule: fix inverted condition in reporting of priority lending via ktr Reviewed by: kan MFC after: 1 week --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/sched_ule.c') diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 3374778..9428b39 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1639,7 +1639,7 @@ sched_thread_priority(struct thread *td, u_char prio) "prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED, sched_tdname(curthread)); SDT_PROBE3(sched, , , change_pri, td, td->td_proc, prio); - if (td != curthread && prio > td->td_priority) { + if (td != curthread && prio < td->td_priority) { KTR_POINT3(KTR_SCHED, "thread", sched_tdname(curthread), "lend prio", "prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED, sched_tdname(td)); -- cgit v1.1