]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
MIPS: Fix a R10000_LLSC_WAR logic in atomic.h
authorHuacai Chen <chenhc@lemote.com>
Tue, 25 Dec 2018 00:51:01 +0000 (08:51 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitd4015126f8fb3269b157757c61863d5ceb6c7fb2
treeaf0be3527bc80b5bfd77d1e01939d24e14fc6c0e
parent81f79eaba68db100d5de652f41d6be10e6aefe03
MIPS: Fix a R10000_LLSC_WAR logic in atomic.h

BugLink: https://bugs.launchpad.net/bugs/1837257
commit db1ce3f5d01d2d6d5714aefba0159d2cb5167a0b upstream.

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 <chenhc@lemote.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Joshua Kinard <kumba@gentoo.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Steven J . Hill <Steven.Hill@cavium.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org # 4.19+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/mips/include/asm/atomic.h