aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rwlock_types.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-08-15 23:28:14 +0200
committerIngo Molnar <mingo@kernel.org>2021-08-17 17:26:27 +0200
commit4f084ca74c3f0eb321ab50e69afd27c8fcb96a99 (patch)
tree4df2cfe80e57003d8ce14c30fb80aefc2a7b8c55 /include/linux/rwlock_types.h
parentlocking/rtmutex: Guard regular sleeping locks specific functions (diff)
downloadlinux-dev-4f084ca74c3f0eb321ab50e69afd27c8fcb96a99.tar.xz
linux-dev-4f084ca74c3f0eb321ab50e69afd27c8fcb96a99.zip
locking/spinlock: Split the lock types header, and move the raw types into <linux/spinlock_types_raw.h>
Move raw_spinlock into its own file. Prepare for RT 'sleeping spinlocks', to avoid header recursion, as RT locks require rtmutex.h, which in turn requires the raw spinlock types. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210815211303.371269088@linutronix.de
Diffstat (limited to 'include/linux/rwlock_types.h')
-rw-r--r--include/linux/rwlock_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/rwlock_types.h b/include/linux/rwlock_types.h
index 3bd03e18061c..0ad226b5d8fd 100644
--- a/include/linux/rwlock_types.h
+++ b/include/linux/rwlock_types.h
@@ -1,6 +1,10 @@
#ifndef __LINUX_RWLOCK_TYPES_H
#define __LINUX_RWLOCK_TYPES_H
+#if !defined(__LINUX_SPINLOCK_TYPES_H)
+# error "Do not include directly, include spinlock_types.h"
+#endif
+
/*
* include/linux/rwlock_types.h - generic rwlock type definitions
* and initializers