Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110712
b: refs/heads/master
c: 3ba3557
h: refs/heads/master
v: v3
  • Loading branch information
Manfred Spraul authored and Ingo Molnar committed Sep 6, 2008
1 parent d12e1fe commit 5472522
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 38736f475071b80b66be28af7b44c854073699cc
refs/heads/master: 3ba35573ad9a149a3af19625b502679283382f6b
5 changes: 3 additions & 2 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,14 @@ static int __ref take_cpu_down(void *_param)
struct take_cpu_down_param *param = _param;
int err;

raw_notifier_call_chain(&cpu_chain, CPU_DYING | param->mod,
param->hcpu);
/* Ensure this CPU doesn't handle any more interrupts. */
err = __cpu_disable();
if (err < 0)
return err;

raw_notifier_call_chain(&cpu_chain, CPU_DYING | param->mod,
param->hcpu);

/* Force idle task to run as soon as we yield: it should
immediately notice cpu is offline and die quickly. */
sched_idle_next();
Expand Down

0 comments on commit 5472522

Please sign in to comment.