hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/kernel/locking/spinlock.c
....@@ -22,6 +22,13 @@
2222 #include <linux/debug_locks.h>
2323 #include <linux/export.h>
2424
25
+#ifdef CONFIG_MMIOWB
26
+#ifndef arch_mmiowb_state
27
+DEFINE_PER_CPU(struct mmiowb_state, __mmiowb_state);
28
+EXPORT_PER_CPU_SYMBOL(__mmiowb_state);
29
+#endif
30
+#endif
31
+
2532 /*
2633 * If lockdep is enabled then we use the non-preemption spin-ops
2734 * even on CONFIG_PREEMPT, because lockdep assumes that interrupts are
....@@ -117,11 +124,8 @@
117124 * __[spin|read|write]_lock_bh()
118125 */
119126 BUILD_LOCK_OPS(spin, raw_spinlock);
120
-
121
-#ifndef CONFIG_PREEMPT_RT_FULL
122127 BUILD_LOCK_OPS(read, rwlock);
123128 BUILD_LOCK_OPS(write, rwlock);
124
-#endif
125129
126130 #endif
127131
....@@ -204,8 +208,6 @@
204208 }
205209 EXPORT_SYMBOL(_raw_spin_unlock_bh);
206210 #endif
207
-
208
-#ifndef CONFIG_PREEMPT_RT_FULL
209211
210212 #ifndef CONFIG_INLINE_READ_TRYLOCK
211213 int __lockfunc _raw_read_trylock(rwlock_t *lock)
....@@ -350,8 +352,6 @@
350352 }
351353 EXPORT_SYMBOL(_raw_write_unlock_bh);
352354 #endif
353
-
354
-#endif /* !PREEMPT_RT_FULL */
355355
356356 #ifdef CONFIG_DEBUG_LOCK_ALLOC
357357