projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add spinlocks
[fio.git]
/
arch
/
arch.h
diff --git
a/arch/arch.h
b/arch/arch.h
index f4eb855ebf340d8a002759c8384323cd63218a97..00163570f82c04f9de2825af424fae28b5d43a2d 100644
(file)
--- a/
arch/arch.h
+++ b/
arch/arch.h
@@
-38,4
+38,9
@@
enum {
#include "../lib/ffz.h"
#endif
+static inline void spin_lock_init(spinlock_t *lock)
+{
+ lock->lock = 0;
+}
+
#endif