RISC-V: Remove __smp_bp__{before,after}_atomic
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Nov 2017 22:03:48 +0000 (14:03 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Nov 2017 22:03:48 +0000 (14:03 -0800)
These duplicate the asm-generic definitions are therefor aren't useful.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/barrier.h

index 183534b7c39b7d663ea757b2d0ff346e58bae15c..455ee16127fbcc529fa248192a2476e114909a0e 100644 (file)
 #define smp_rmb()      RISCV_FENCE(r,r)
 #define smp_wmb()      RISCV_FENCE(w,w)
 
-/*
- * These fences exist to enforce ordering around the relaxed AMOs.  The
- * documentation defines that
- * "
- *     atomic_fetch_add();
- *   is equivalent to:
- *     smp_mb__before_atomic();
- *     atomic_fetch_add_relaxed();
- *     smp_mb__after_atomic();
- * "
- * So we emit full fences on both sides.
- */
-#define __smb_mb__before_atomic()      smp_mb()
-#define __smb_mb__after_atomic()       smp_mb()
-
 /*
  * These barriers prevent accesses performed outside a spinlock from being moved
  * inside a spinlock.  Since RISC-V sets the aq/rl bits on our spinlock only