summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-rtmutex.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-05-31 18:11:49 +0300
committerIngo Molnar <mingo@kernel.org>2017-06-08 11:35:50 +0300
commit018956d6419be3e5ff5aacc60b2a3cff585adee1 (patch)
tree6ecde8e95a6fc80d93933ab0e4d8c8463ea3b1ce /lib/locking-selftest-rtmutex.h
parentcfb6133399a490419cda55fcdcf9dbbca65eacba (diff)
downloadlinux-018956d6419be3e5ff5aacc60b2a3cff585adee1.tar.xz
locking/selftest: Add RT-mutex support
Now that RT-mutex has lockdep annotations, add them to the selftest. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/locking-selftest-rtmutex.h')
-rw-r--r--lib/locking-selftest-rtmutex.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/locking-selftest-rtmutex.h b/lib/locking-selftest-rtmutex.h
new file mode 100644
index 000000000000..e3cb83989d16
--- /dev/null
+++ b/lib/locking-selftest-rtmutex.h
@@ -0,0 +1,11 @@
+#undef LOCK
+#define LOCK RTL
+
+#undef UNLOCK
+#define UNLOCK RTU
+
+#undef RLOCK
+#undef WLOCK
+
+#undef INIT
+#define INIT RTI