csky: syscache: Fixup duplicate cache flush
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 4 May 2021 06:08:44 +0000 (14:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:52 +0000 (16:56 +0200)
commitb6a41435c832830754ed298e9ae2eaf13e74e88f
tree623c096b1e6e3d5ed48789de5d8ab5cace420b71
parent3483e1a41ca0e7be090b5134d1aff4b291a4ad53
csky: syscache: Fixup duplicate cache flush

[ Upstream commit 6ea42c84f33368eb3fe1ec1bff8d7cb1a5c7b07a ]

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: 997153b9a75c ("csky: Add flush_icache_mm to defer flush icache all")
Fixes: 0679d29d3e23 ("csky: fix syscache.c fallthrough warning")
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Co-Developed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/csky/mm/syscache.c