hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/spinlock.h
....@@ -309,11 +309,7 @@
309309 })
310310
311311 /* Include rwlock functions */
312
-#ifdef CONFIG_PREEMPT_RT
313
-# include <linux/rwlock_rt.h>
314
-#else
315
-# include <linux/rwlock.h>
316
-#endif
312
+#include <linux/rwlock.h>
317313
318314 /*
319315 * Pull the _spin_*()/_read_*()/_write_*() functions/declarations:
....@@ -323,10 +319,6 @@
323319 #else
324320 # include <linux/spinlock_api_up.h>
325321 #endif
326
-
327
-#ifdef CONFIG_PREEMPT_RT
328
-# include <linux/spinlock_rt.h>
329
-#else /* PREEMPT_RT */
330322
331323 /*
332324 * Map the spin_lock functions to the raw variants for PREEMPT_RT=n
....@@ -461,8 +453,6 @@
461453 }
462454
463455 #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock)
464
-
465
-#endif /* !PREEMPT_RT */
466456
467457 /*
468458 * Pull the atomic_t declaration: