Commit 6c837d43 authored by Guo Ren's avatar Guo Ren Committed by Zheng Zengkai
Browse files

csky: syscache: Fixup duplicate cache flush

stable inclusion
from stable-5.10.50
commit b6a41435c832830754ed298e9ae2eaf13e74e88f
bugzilla: 174522 https://gitee.com/openeuler/kernel/issues/I4DNFY

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b6a41435c832830754ed298e9ae2eaf13e74e88f



--------------------------------

[ Upstream commit 6ea42c84 ]

The current csky logic of sys_cacheflush is wrong, it'll cause
icache flush call dcache flush again. Now fixup it with a
conditional "break & fallthrough".

Fixes: 997153b9 ("csky: Add flush_icache_mm to defer flush icache all")
Fixes: 0679d29d ("csky: fix syscache.c fallthrough warning")
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Co-Developed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 5157affe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment