Fix an inversion in logic.

Submitted by:	marius
This commit is contained in:
Attilio Rao 2011-05-10 18:19:56 +00:00
parent d40d5f64a2
commit 3f748615ac

View File

@ -532,7 +532,7 @@ cpu_ipi_stop(struct trapframe *tf)
CPU_OR_ATOMIC(&stopped_cpus, &tcmask);
while (!CPU_OVERLAP(&started_cpus, &tcmask)) {
if (CPU_OVERLAP(&shutdown_cpus, &tcmask)) {
CPU_OR_ATOMIC(&shutdown_cpus, &tcmask);
CPU_NAND_ATOMIC(&shutdown_cpus, &tcmask);
(void)intr_disable();
for (;;)
;