hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/linux/spinlock.h
....@@ -298,7 +298,11 @@
298298 })
299299
300300 /* Include rwlock functions */
301
-#include <linux/rwlock.h>
301
+#ifdef CONFIG_PREEMPT_RT_FULL
302
+# include <linux/rwlock_rt.h>
303
+#else
304
+# include <linux/rwlock.h>
305
+#endif
302306
303307 /*
304308 * Pull the _spin_*()/_read_*()/_write_*() functions/declarations:
....@@ -308,6 +312,10 @@
308312 #else
309313 # include <linux/spinlock_api_up.h>
310314 #endif
315
+
316
+#ifdef CONFIG_PREEMPT_RT_FULL
317
+# include <linux/spinlock_rt.h>
318
+#else /* PREEMPT_RT_FULL */
311319
312320 /*
313321 * Map the spin_lock functions to the raw variants for PREEMPT_RT=n
....@@ -429,6 +437,8 @@
429437
430438 #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock)
431439
440
+#endif /* !PREEMPT_RT_FULL */
441
+
432442 /*
433443 * Pull the atomic_t declaration:
434444 * (asm-mips/atomic.h needs above definitions)