diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-11 03:41:52 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 07:19:46 +0300 |
commit | 10baa64c02f6746fd506136e0693aa2d592574fb (patch) | |
tree | da00e48f0cb5d1434cbc7c31bb6ca15efa7d4564 /include/sbi/riscv_barrier.h | |
parent | fbf986ac2a0b926ae97e6796b87e366610d7589e (diff) | |
download | opensbi-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_barrier.h')
-rw-r--r-- | include/sbi/riscv_barrier.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/sbi/riscv_barrier.h b/include/sbi/riscv_barrier.h index 14ebecc..905ecb4 100644 --- a/include/sbi/riscv_barrier.h +++ b/include/sbi/riscv_barrier.h @@ -41,17 +41,17 @@ /* clang-format on */ -#define __smp_store_release(p, v) \ -do { \ - RISCV_FENCE(rw,w); \ - *(p) = (v); \ -} while (0) - -#define __smp_load_acquire(p) \ -({ \ - typeof(*p) ___p1 = *(p); \ - RISCV_FENCE(r,rw); \ - ___p1; \ -}) +#define __smp_store_release(p, v) \ + do { \ + RISCV_FENCE(rw, w); \ + *(p) = (v); \ + } while (0) + +#define __smp_load_acquire(p) \ + ({ \ + typeof(*p) ___p1 = *(p); \ + RISCV_FENCE(r, rw); \ + ___p1; \ + }) #endif |