Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332333
b: refs/heads/master
c: 075663d
h: refs/heads/master
i:
  332331: 937a315
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Linus Torvalds committed Oct 9, 2012
1 parent ecdb71b commit f9eec06
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7ac57a89de958fbb5271dc504d0c25e34dbeec32
refs/heads/master: 075663d19885eb3738fd2d7dbdb8947e12563b68
4 changes: 4 additions & 0 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ void put_online_cpus(void)
if (cpu_hotplug.active_writer == current)
return;
mutex_lock(&cpu_hotplug.lock);

if (WARN_ON(!cpu_hotplug.refcount))
cpu_hotplug.refcount++; /* try to fix things up */

if (!--cpu_hotplug.refcount && unlikely(cpu_hotplug.active_writer))
wake_up_process(cpu_hotplug.active_writer);
mutex_unlock(&cpu_hotplug.lock);
Expand Down

0 comments on commit f9eec06

Please sign in to comment.