]> git.baikalelectronics.ru Git - kernel.git/commit
csky: syscache: Fixup duplicate cache flush
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 4 May 2021 06:08:44 +0000 (14:08 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Sun, 4 Jul 2021 09:39:54 +0000 (17:39 +0800)
commit6174b145d400f4e81d18681628d2d4cc3320657e
tree8c651b03bd589f0f33c9060c03269b792d740c4f
parentc6de18cbc82363742b3e5ae9084ce57f72e214f0
csky: syscache: Fixup duplicate cache flush

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: 3c6c4314c12c ("csky: Add flush_icache_mm to defer flush icache all")
Fixes: 024596bc3d1b ("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>
arch/csky/mm/syscache.c