Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106795
b: refs/heads/master
c: 0432158
h: refs/heads/master
i:
  106793: c0e6553
  106791: 66017ec
v: v3
  • Loading branch information
Rusty Russell committed Jul 28, 2008
1 parent 80c29f3 commit 9b970c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ffdb5976c47609c862917d4c186ecbb5706d2dda
refs/heads/master: 04321587584272f4e8b9818f319f40caf8eeee13
4 changes: 2 additions & 2 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)
set_cpus_allowed_ptr(current, &tmp);

err = __stop_machine_run(take_cpu_down, &tcd_param, cpu);

if (err || cpu_online(cpu)) {
if (err) {
/* CPU didn't die: tell everyone. Can't complain. */
if (raw_notifier_call_chain(&cpu_chain, CPU_DOWN_FAILED | mod,
hcpu) == NOTIFY_BAD)
BUG();

goto out_allowed;
}
BUG_ON(cpu_online(cpu));

/* Wait for it to sleep (leaving idle task). */
while (!idle_cpu(cpu))
Expand Down

0 comments on commit 9b970c2

Please sign in to comment.