From bb3dfc6ae90f67c1900f616ac7948a1112cfae32 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Wed, 25 Sep 2019 11:58:54 +0000 Subject: [PATCH] Fix wrong assertion in r352658. MFC after: 1 month --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 9d73a59c74fd..5568facbc80f 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1345,7 +1345,7 @@ sched_pickcpu(struct thread *td, int flags) if (cpu >= 0) SCHED_STAT_INC(pickcpu_lowest); } - KASSERT(cpu < 0, ("sched_pickcpu: Failed to find a cpu.")); + KASSERT(cpu >= 0, ("sched_pickcpu: Failed to find a cpu.")); KASSERT(!CPU_ABSENT(cpu), ("sched_pickcpu: Picked absent CPU %d.", cpu)); /* * Compare the lowest loaded cpu to current cpu.