]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Enable defer flush_dcache_page for abiv2 cpus (807/810/860)
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 26 Jan 2020 17:20:36 +0000 (01:20 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Fri, 21 Feb 2020 07:43:24 +0000 (15:43 +0800)
commita82eeb4fe194b36d8fafcfb6b2040674297cd4d3
treeb9b305756f2fb2696bb14f649b9ec5ccebb2858c
parent941a317b02c06a6164122a9fdffe73c70a3dd56c
csky: Enable defer flush_dcache_page for abiv2 cpus (807/810/860)

Instead of flushing cache per update_mmu_cache() called, we use
flush_dcache_page to reduce the frequency of flashing the cache.

As abiv2 cpus are all PIPT for icache & dcache, we needn't handle
dcache aliasing problem. But their icache can't snoop dcache, so
we still need sync_icache_dcache in update_mmu_cache().

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/abiv2/cacheflush.c
arch/csky/abiv2/inc/abi/cacheflush.h