From 696635aa52b3155f0781dd7632deab281d0f1a9a Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 26 Jun 2006 00:24:32 -0700 Subject: [PATCH] --- yaml --- r: 30176 b: refs/heads/master c: 81615b624a45621b758380ec45d750483eae281d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/cpu.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 3a8d7ba105a9..9bc2fac4f560 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1fb00c6cbd8356f43b46322742f3c01c2a1f02da +refs/heads/master: 81615b624a45621b758380ec45d750483eae281d diff --git a/trunk/kernel/cpu.c b/trunk/kernel/cpu.c index fe2b8d0bfe4c..03dcd981846a 100644 --- a/trunk/kernel/cpu.c +++ b/trunk/kernel/cpu.c @@ -13,10 +13,10 @@ #include #include #include -#include +#include /* This protects CPUs going up and down... */ -static DECLARE_MUTEX(cpucontrol); +static DEFINE_MUTEX(cpucontrol); static BLOCKING_NOTIFIER_HEAD(cpu_chain); @@ -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); } /* @@ -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);