Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40418
b: refs/heads/master
c: 8fa1d7d
h: refs/heads/master
v: v3
  • Loading branch information
Satoru Takeuchi authored and Linus Torvalds committed Oct 28, 2006
1 parent 30e893a commit b152c68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: bb1d860551c4307b1a7ee9a21b120319075e987e
refs/heads/master: 8fa1d7d3b2c51594c0f3aa151983dd51f605e07d
12 changes: 6 additions & 6 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ static int _cpu_down(unsigned int cpu)
p = __stop_machine_run(take_cpu_down, NULL, cpu);
mutex_unlock(&cpu_bitmask_lock);

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

err = PTR_ERR(p);
goto out_allowed;
}

if (cpu_online(cpu))
if (IS_ERR(p)) {
err = PTR_ERR(p);
goto out_allowed;
}
goto out_thread;
}

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

0 comments on commit b152c68

Please sign in to comment.