aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/qspinlock_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/qspinlock_types.h')
-rw-r--r--include/asm-generic/qspinlock_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-generic/qspinlock_types.h b/include/asm-generic/qspinlock_types.h
index 85f888e86761..034acd0c4956 100644
--- a/include/asm-generic/qspinlock_types.h
+++ b/include/asm-generic/qspinlock_types.h
@@ -33,6 +33,11 @@ typedef struct qspinlock {
} arch_spinlock_t;
/*
+ * Initializier
+ */
+#define __ARCH_SPIN_LOCK_UNLOCKED { ATOMIC_INIT(0) }
+
+/*
* Bitfields in the atomic value:
*
* When NR_CPUS < 16K