summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cpu.c b/core/cpu.c
index b2eecda4..1569c9f6 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -737,7 +737,7 @@ struct cpu_thread *next_ungarded_primary(struct cpu_thread *cpu)
{
do {
cpu = next_cpu(cpu);
- } while(cpu && cpu->state == cpu_state_unavailable && cpu->primary != cpu);
+ } while(cpu && (cpu->state == cpu_state_unavailable || cpu->primary != cpu));
return cpu;
}
OpenPOWER on IntegriCloud