Fix wrong assertion in r352658.
MFC after: 1 month
This commit is contained in:
parent
a35a97ae12
commit
bb3dfc6ae9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352677
@ -1345,7 +1345,7 @@ sched_pickcpu(struct thread *td, int flags)
|
|||||||
if (cpu >= 0)
|
if (cpu >= 0)
|
||||||
SCHED_STAT_INC(pickcpu_lowest);
|
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));
|
KASSERT(!CPU_ABSENT(cpu), ("sched_pickcpu: Picked absent CPU %d.", cpu));
|
||||||
/*
|
/*
|
||||||
* Compare the lowest loaded cpu to current cpu.
|
* Compare the lowest loaded cpu to current cpu.
|
||||||
|
Loading…
Reference in New Issue
Block a user