OSDN Git Service

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)
commitd936a7e708dcf22344c4420e8b0e36f5d5f8c073
treeb9b305756f2fb2696bb14f649b9ec5ccebb2858c
parenta1176734132c630b50908c36563e05fb3599682c
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