Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105240
b: refs/heads/master
c: 39b0fad
h: refs/heads/master
v: v3
  • Loading branch information
Max Krasnyansky authored and Ingo Molnar committed Jul 18, 2008
1 parent c249f0d commit 47e636a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e761b7725234276a802322549cee5255305a0930
refs/heads/master: 39b0fad7121eace85770e7a4c6dc35dfd2879768
10 changes: 10 additions & 0 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,16 @@ int __ref cpu_down(unsigned int cpu)

cpu_clear(cpu, cpu_active_map);

/*
* Make sure the all cpus did the reschedule and are not
* using stale version of the cpu_active_map.
* This is not strictly necessary becuase stop_machine()
* that we run down the line already provides the required
* synchronization. But it's really a side effect and we do not
* want to depend on the innards of the stop_machine here.
*/
synchronize_sched();

err = _cpu_down(cpu, 0);

if (cpu_online(cpu))
Expand Down

0 comments on commit 47e636a

Please sign in to comment.