summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-07-05 09:29:32 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:12:25 +0900
commitcf30cfe3b329c19254e44060658cbbf35041c0b7 (patch)
tree46550dd848b1f91d04dcda63460b9b7c79a4777a /lib
parent31bb2684fe395a8ef42e52e2601ac8ce11791248 (diff)
downloadlinux-3.10-cf30cfe3b329c19254e44060658cbbf35041c0b7.tar.gz
linux-3.10-cf30cfe3b329c19254e44060658cbbf35041c0b7.tar.bz2
linux-3.10-cf30cfe3b329c19254e44060658cbbf35041c0b7.zip
mutex: Move ww_mutex definitions to ww_mutex.h
Move the definitions for wound/wait mutexes out to a separate header, ww_mutex.h. This reduces clutter in mutex.h, and increases readability. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Cc: Dave Airlie <airlied@gmail.com> Link: http://lkml.kernel.org/r/51D675DC.3000907@canonical.com [ Tidied up the code a bit. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/locking-selftest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c
index c3eb261a7df..fbabfc3f64e 100644
--- a/lib/locking-selftest.c
+++ b/lib/locking-selftest.c
@@ -12,6 +12,7 @@
*/
#include <linux/rwsem.h>
#include <linux/mutex.h>
+#include <linux/ww_mutex.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/lockdep.h>