forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
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