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.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to