diff options
author | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-01-18 16:44:44 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-04-29 09:08:44 +0200 |
commit | 068550631fbe0b7fb41625cea6fb204fdc8cb224 (patch) | |
tree | b47cab011c4d08c9e7ec323e0bac7f874e13b4c1 /arch/arc | |
parent | ee1ee6db07795d9637bc5e8993a8ddcf886541ef (diff) | |
download | linux-stable-068550631fbe0b7fb41625cea6fb204fdc8cb224.tar.gz linux-stable-068550631fbe0b7fb41625cea6fb204fdc8cb224.tar.bz2 linux-stable-068550631fbe0b7fb41625cea6fb204fdc8cb224.zip |
locking/arch: Rename all internal __xchg() names to __arch_xchg()
Decrease the probability of this internal facility to be used by
driver code.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
Acked-by: Palmer Dabbelt <palmer@rivosinc.com> [riscv]
Link: https://lore.kernel.org/r/20230118154450.73842-1-andrzej.hajda@intel.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/include/asm/cmpxchg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h index c5b544a5fe81..e138fde067de 100644 --- a/arch/arc/include/asm/cmpxchg.h +++ b/arch/arc/include/asm/cmpxchg.h @@ -85,7 +85,7 @@ */ #ifdef CONFIG_ARC_HAS_LLSC -#define __xchg(ptr, val) \ +#define __arch_xchg(ptr, val) \ ({ \ __asm__ __volatile__( \ " ex %0, [%1] \n" /* set new value */ \ @@ -102,7 +102,7 @@ \ switch(sizeof(*(_p_))) { \ case 4: \ - _val_ = __xchg(_p_, _val_); \ + _val_ = __arch_xchg(_p_, _val_); \ break; \ default: \ BUILD_BUG(); \ |