Skip to content

Commit 4f30ba1

Browse files
linuswctmarinas
authored andcommitted
arm64: barrier: Remove spec_bar() macro
The spec_bar() macro was introduced in commit bd4fb6d ("arm64: Add support for SB barrier and patch in over DSB; ISB sequences") as a way for C to insert a speculation barrier and was then used in one single place: set_fs(). Later on commit 3d2403f ("arm64: uaccess: remove set_fs()") deleted set_fs() altogether and as noted in the commit on the new path the regular sb() assembly macro will be used. Delete the remnant. Cc: Mark Rutland <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 9eef29d commit 4f30ba1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/arm64/include/asm/barrier.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
#define psb_csync() asm volatile("hint #17" : : : "memory")
2626
#define csdb() asm volatile("hint #20" : : : "memory")
2727

28-
#define spec_bar() asm volatile(ALTERNATIVE("dsb nsh\nisb\n", \
29-
SB_BARRIER_INSN"nop\n", \
30-
ARM64_HAS_SB))
31-
3228
#ifdef CONFIG_ARM64_PSEUDO_NMI
3329
#define pmr_sync() \
3430
do { \

0 commit comments

Comments
 (0)