forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/include/asm/spinlock.h
....@@ -11,6 +11,21 @@
1111
1212 #include <asm/processor.h>
1313 #include <asm/qrwlock.h>
14
+
15
+#include <asm-generic/qspinlock_types.h>
16
+
17
+#define queued_spin_unlock queued_spin_unlock
18
+/**
19
+ * queued_spin_unlock - release a queued spinlock
20
+ * @lock : Pointer to queued spinlock structure
21
+ */
22
+static inline void queued_spin_unlock(struct qspinlock *lock)
23
+{
24
+ /* This could be optimised with ARCH_HAS_MMIOWB */
25
+ mmiowb();
26
+ smp_store_release(&lock->locked, 0);
27
+}
28
+
1429 #include <asm/qspinlock.h>
1530
1631 #endif /* _ASM_SPINLOCK_H */