Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30176
b: refs/heads/master
c: 81615b6
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 26, 2006
1 parent 21c38ba commit 696635a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 1fb00c6cbd8356f43b46322742f3c01c2a1f02da
refs/heads/master: 81615b624a45621b758380ec45d750483eae281d
10 changes: 5 additions & 5 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
#include <linux/module.h>
#include <linux/kthread.h>
#include <linux/stop_machine.h>
#include <asm/semaphore.h>
#include <linux/mutex.h>

/* This protects CPUs going up and down... */
static DECLARE_MUTEX(cpucontrol);
static DEFINE_MUTEX(cpucontrol);

static BLOCKING_NOTIFIER_HEAD(cpu_chain);

Expand All @@ -30,9 +30,9 @@ static int __lock_cpu_hotplug(int interruptible)

if (lock_cpu_hotplug_owner != current) {
if (interruptible)
ret = down_interruptible(&cpucontrol);
ret = mutex_lock_interruptible(&cpucontrol);
else
down(&cpucontrol);
mutex_lock(&cpucontrol);
}

/*
Expand All @@ -56,7 +56,7 @@ void unlock_cpu_hotplug(void)
{
if (--lock_cpu_hotplug_depth == 0) {
lock_cpu_hotplug_owner = NULL;
up(&cpucontrol);
mutex_unlock(&cpucontrol);
}
}
EXPORT_SYMBOL_GPL(unlock_cpu_hotplug);
Expand Down

0 comments on commit 696635a

Please sign in to comment.