aboutsummaryrefslogtreecommitdiff
path: root/lib/locking-selftest-rtmutex.h
diff options
context:
space:
mode:
authorPeter Zijlstra2017-05-31 17:11:49 +0200
committerIngo Molnar2017-06-08 10:35:50 +0200
commit018956d6419be3e5ff5aacc60b2a3cff585adee1 (patch)
tree6ecde8e95a6fc80d93933ab0e4d8c8463ea3b1ce /lib/locking-selftest-rtmutex.h
parentcfb6133399a490419cda55fcdcf9dbbca65eacba (diff)
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