diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-07-05 03:29:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-07-12 06:07:46 -0400 |
commit | 1b375dc30710180c4b88cc59caba6e3481ec5c8b (patch) | |
tree | 24b5cfc929db57207afec4633909b8e6755df5f9 /kernel | |
parent | 2e17c5a97e231f3cb426f4b7895eab5be5c5442e (diff) |
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 'kernel')
-rw-r--r-- | kernel/mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/mutex.c b/kernel/mutex.c index e581ada5faf4..ff05f4bd86eb 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c | |||
@@ -18,6 +18,7 @@ | |||
18 | * Also see Documentation/mutex-design.txt. | 18 | * Also see Documentation/mutex-design.txt. |
19 | */ | 19 | */ |
20 | #include <linux/mutex.h> | 20 | #include <linux/mutex.h> |
21 | #include <linux/ww_mutex.h> | ||
21 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
22 | #include <linux/sched/rt.h> | 23 | #include <linux/sched/rt.h> |
23 | #include <linux/export.h> | 24 | #include <linux/export.h> |