Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2019 11:58:54 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352677 - head/sys/kern
Message-ID:  <201909251158.x8PBwstv063919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909251158.x8PBwstv063919>