Add spinlocks
[fio.git] / arch / arch.h
index f4eb855ebf340d8a002759c8384323cd63218a97..00163570f82c04f9de2825af424fae28b5d43a2d 100644 (file)
@@ -38,4 +38,9 @@ enum {
 #include "../lib/ffz.h"
 #endif
 
+static inline void spin_lock_init(spinlock_t *lock)
+{
+       lock->lock = 0;
+}
+
 #endif