sched_ule: fix inverted condition in reporting of priority lending via ktr

Reviewed by:	kan
MFC after:	1 week
This commit is contained in:
Andriy Gapon 2012-09-14 19:55:28 +00:00
parent f2fb6260e5
commit e87fc7cf7b

View File

@ -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));