Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97203
b: refs/heads/master
c: 3401a61
h: refs/heads/master
i:
  97201: c1a1105
  97199: 56fcd68
v: v3
  • Loading branch information
Christian Borntraeger authored and Rusty Russell committed May 23, 2008
1 parent a3c3a92 commit 03da945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d2e7d0d77e4e1e8a21cc990c607985fdba20e66
refs/heads/master: 3401a61e16a5b852d4e353c8850c857105a67a9c
7 changes: 4 additions & 3 deletions trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ static int stopmachine(void *cpu)
* help our sisters onto their CPUs. */
if (!prepared && !irqs_disabled)
yield();
else
cpu_relax();
cpu_relax();
}

/* Ack: we are exiting. */
Expand Down Expand Up @@ -106,8 +105,10 @@ static int stop_machine(void)
}

/* Wait for them all to come to life. */
while (atomic_read(&stopmachine_thread_ack) != stopmachine_num_threads)
while (atomic_read(&stopmachine_thread_ack) != stopmachine_num_threads) {
yield();
cpu_relax();
}

/* If some failed, kill them all. */
if (ret < 0) {
Expand Down

0 comments on commit 03da945

Please sign in to comment.