svn commit: r352677 - head/sys/kern

Alexander Motin mav at FreeBSD.org
Wed Sep 25 11:58:54 UTC 2019


Author: mav
Date: Wed Sep 25 11:58:54 2019
New Revision: 352677
URL: https://svnweb.freebsd.org/changeset/base/352677

Log:
  Fix wrong assertion in r352658.
  
  MFC after:	1 month

Modified:
  head/sys/kern/sched_ule.c

Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c	Wed Sep 25 10:46:05 2019	(r352676)
+++ head/sys/kern/sched_ule.c	Wed Sep 25 11:58:54 2019	(r352677)
@@ -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.


More information about the svn-src-head mailing list