mutex: Move ww_mutex definitions to ww_mutex.h
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Fri, 5 Jul 2013 07:29:32 +0000 (09:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 12 Jul 2013 10:07:46 +0000 (12:07 +0200)
commit1b375dc30710180c4b88cc59caba6e3481ec5c8b
tree24b5cfc929db57207afec4633909b8e6755df5f9
parent2e17c5a97e231f3cb426f4b7895eab5be5c5442e
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>
include/linux/mutex.h
include/linux/reservation.h
include/linux/ww_mutex.h [new file with mode: 0644]
kernel/mutex.c
lib/locking-selftest.c