hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/linux/rwsem.h
....@@ -20,6 +20,10 @@
2020 #include <linux/osq_lock.h>
2121 #endif
2222
23
+#ifdef CONFIG_PREEMPT_RT_FULL
24
+#include <linux/rwsem_rt.h>
25
+#else /* PREEMPT_RT_FULL */
26
+
2327 struct rw_semaphore;
2428
2529 #ifdef CONFIG_RWSEM_GENERIC_SPINLOCK
....@@ -119,6 +123,13 @@
119123 return !list_empty(&sem->wait_list);
120124 }
121125
126
+#endif /* !PREEMPT_RT_FULL */
127
+
128
+/*
129
+ * The functions below are the same for all rwsem implementations including
130
+ * the RT specific variant.
131
+ */
132
+
122133 /*
123134 * lock for reading
124135 */