summaryrefslogtreecommitdiff
path: root/include/sbi/riscv_locks.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-04-11 03:41:52 +0300
committerAnup Patel <anup@brainfault.org>2019-04-24 07:19:46 +0300
commit10baa64c02f6746fd506136e0693aa2d592574fb (patch)
treeda00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /include/sbi/riscv_locks.h
parentfbf986ac2a0b926ae97e6796b87e366610d7589e (diff)
downloadopensbi-10baa64c02f6746fd506136e0693aa2d592574fb.tar.xz
all: run clang-format and update checked-in files
Noisy commit, no functional changes. Generated with an current upstream clang-format and: clang-format -i $(find . -name \*.[ch]) Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/sbi/riscv_locks.h')
-rw-r--r--include/sbi/riscv_locks.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/sbi/riscv_locks.h b/include/sbi/riscv_locks.h
index 4476319..55da7c0 100644
--- a/include/sbi/riscv_locks.h
+++ b/include/sbi/riscv_locks.h
@@ -14,13 +14,14 @@ typedef struct {
volatile long lock;
} spinlock_t;
-#define __RISCV_SPIN_UNLOCKED 0
+#define __RISCV_SPIN_UNLOCKED 0
-#define SPIN_LOCK_INIT(_lptr) \
- (_lptr)->lock = __RISCV_SPIN_UNLOCKED
+#define SPIN_LOCK_INIT(_lptr) (_lptr)->lock = __RISCV_SPIN_UNLOCKED
-#define SPIN_LOCK_INITIALIZER \
- { .lock = __RISCV_SPIN_UNLOCKED, }
+#define SPIN_LOCK_INITIALIZER \
+ { \
+ .lock = __RISCV_SPIN_UNLOCKED, \
+ }
int spin_lock_check(spinlock_t *lock);