summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-13 08:22:43 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-13 08:22:43 -0700
commitd811f236d90e58c67092eaadacab609e76c38749 (patch)
tree52b7d911948cf6a50f9a54abb6b91890ff9a8a72 /kernel
parent29a1e26febf4bd6eecab2a17a056c177d3627788 (diff)
parent066123a535927b3f17cac2305258cc71abdb0d92 (diff)
downloadop-kernel-dev-d811f236d90e58c67092eaadacab609e76c38749.zip
op-kernel-dev-d811f236d90e58c67092eaadacab609e76c38749.tar.gz
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: percpu: unbreak alpha percpu mutex: have non-spinning mutexes on s390 by default
Diffstat (limited to 'kernel')
-rw-r--r--kernel/mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/mutex.c b/kernel/mutex.c
index 5d79781..507cf2b 100644
--- a/kernel/mutex.c
+++ b/kernel/mutex.c
@@ -148,7 +148,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
preempt_disable();
mutex_acquire(&lock->dep_map, subclass, 0, ip);
-#if defined(CONFIG_SMP) && !defined(CONFIG_DEBUG_MUTEXES)
+#if defined(CONFIG_SMP) && !defined(CONFIG_DEBUG_MUTEXES) && \
+ !defined(CONFIG_HAVE_DEFAULT_NO_SPIN_MUTEXES)
/*
* Optimistic spinning.
*
OpenPOWER on IntegriCloud