summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-13 17:22:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-13 17:22:43 +0200
commitd811f236d90e58c67092eaadacab609e76c38749 (patch)
tree52b7d911948cf6a50f9a54abb6b91890ff9a8a72 /kernel
parentMerge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds (diff)
parentpercpu: unbreak alpha percpu (diff)
downloadlinux-d811f236d90e58c67092eaadacab609e76c38749.tar.xz
linux-d811f236d90e58c67092eaadacab609e76c38749.zip
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 5d79781394a3..507cf2b5e9f1 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.
*