]> Git Repo - linux.git/commitdiff
MIPS: Fix a R10000_LLSC_WAR logic in atomic.h
authorHuacai Chen <[email protected]>
Tue, 25 Dec 2018 00:51:01 +0000 (08:51 +0800)
committerPaul Burton <[email protected]>
Mon, 31 Dec 2018 15:16:59 +0000 (07:16 -0800)
Commit 4936084c2ee2 ("MIPS: Cleanup R10000_LLSC_WAR logic in atomic.h")
introduce a mistake in atomic64_fetch_##op##_relaxed(), because it
forget to delete R10000_LLSC_WAR in the if-condition. So fix it.

Fixes: 4936084c2ee2 ("MIPS: Cleanup R10000_LLSC_WAR logic in atomic.h")
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: Joshua Kinard <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Steven J . Hill <[email protected]>
Cc: Fuxin Zhang <[email protected]>
Cc: Zhangjin Wu <[email protected]>
Cc: [email protected]
Cc: [email protected] # 4.19+
arch/mips/include/asm/atomic.h

index e8fbfd419151af23e242a04c5842f30146735fda..43fcd35e295759d7368268d48bfa6534b074f117 100644 (file)
@@ -313,7 +313,7 @@ static __inline__ long atomic64_fetch_##op##_relaxed(long i, atomic64_t * v)  \
 {                                                                            \
        long result;                                                          \
                                                                              \
-       if (kernel_uses_llsc && R10000_LLSC_WAR) {                            \
+       if (kernel_uses_llsc) {                                               \
                long temp;                                                    \
                                                                              \
                __asm__ __volatile__(                                         \
This page took 0.055248 seconds and 4 git commands to generate.