summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_init.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-03-26 15:40:02 +0300
committerAnup Patel <anup@brainfault.org>2020-03-28 11:02:38 +0300
commit5b6957eed75ca7842861e0f6765d0f6a64408e05 (patch)
tree6ac41dea78cdd7db7c4006c052bcf069b1dc1814 /lib/sbi/sbi_init.c
parent7b211ff92482379aa34c0a217e2aeded5713b2d5 (diff)
downloadopensbi-5b6957eed75ca7842861e0f6765d0f6a64408e05.tar.xz
include: Use more consistent name for atomic xchg() and cmpxchg()
We should remove the "arch_" prefix from atomic xchg() and cmpxchg() function names to have consistent naming of all atomic functions. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r--lib/sbi/sbi_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
index 4e1699d..f0ce209 100644
--- a/lib/sbi/sbi_init.c
+++ b/lib/sbi/sbi_init.c
@@ -285,7 +285,7 @@ void __noreturn sbi_init(struct sbi_scratch *scratch)
sbi_platform_hart_invalid(plat, hartid))
sbi_hart_hang();
- if (arch_atomic_xchg(&coldboot_lottery, 1) == 0)
+ if (atomic_xchg(&coldboot_lottery, 1) == 0)
coldboot = TRUE;
if (coldboot)