aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/spinlock_api_smp.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-08-15 23:28:23 +0200
committerIngo Molnar <mingo@kernel.org>2021-08-17 17:43:24 +0200
commit342a93247e0837101f27bbcca26f402902df98dc (patch)
treee7e298f8a4fba435fd8164a82d96f77e6dfa467f /include/linux/spinlock_api_smp.h
parentlocking/spinlock: Provide RT specific spinlock_t (diff)
downloadwireguard-linux-342a93247e0837101f27bbcca26f402902df98dc.tar.xz
wireguard-linux-342a93247e0837101f27bbcca26f402902df98dc.zip
locking/spinlock: Provide RT variant header: <linux/spinlock_rt.h>
Provide the necessary wrappers around the actual rtmutex based spinlock implementation. 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.712897671@linutronix.de
Diffstat (limited to 'include/linux/spinlock_api_smp.h')
-rw-r--r--include/linux/spinlock_api_smp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/spinlock_api_smp.h b/include/linux/spinlock_api_smp.h
index 19a9be9d97ee..6b8e1a0b137b 100644
--- a/include/linux/spinlock_api_smp.h
+++ b/include/linux/spinlock_api_smp.h
@@ -187,6 +187,9 @@ static inline int __raw_spin_trylock_bh(raw_spinlock_t *lock)
return 0;
}
+/* PREEMPT_RT has its own rwlock implementation */
+#ifndef CONFIG_PREEMPT_RT
#include <linux/rwlock_api_smp.h>
+#endif
#endif /* __LINUX_SPINLOCK_API_SMP_H */