diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-02-02 10:58:38 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-02-21 15:43:25 +0800 |
commit | 9025fd48a8aeddade845afa353d4bbab7f19dbf2 (patch) | |
tree | 5b71f8e8e62a80b8e4316b5f3e30d89dc322b470 /arch/csky | |
parent | 359ae00d12589c31cf103894d0f32588d523ca83 (diff) | |
download | linux-9025fd48a8aeddade845afa353d4bbab7f19dbf2.tar.gz linux-9025fd48a8aeddade845afa353d4bbab7f19dbf2.tar.bz2 linux-9025fd48a8aeddade845afa353d4bbab7f19dbf2.zip |
csky: Remove unused cache implementation
Only for coding convention, these codes are unnecessary for abiv2.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky')
-rw-r--r-- | arch/csky/mm/cachev2.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/csky/mm/cachev2.c b/arch/csky/mm/cachev2.c index 909fdd0f5995..bc419f8039d3 100644 --- a/arch/csky/mm/cachev2.c +++ b/arch/csky/mm/cachev2.c @@ -52,23 +52,9 @@ void dcache_wb_range(unsigned long start, unsigned long end) sync_is(); } -void dcache_inv_range(unsigned long start, unsigned long end) -{ - unsigned long i = start & ~(L1_CACHE_BYTES - 1); - - for (; i < end; i += L1_CACHE_BYTES) - asm volatile("dcache.civa %0\n"::"r"(i):"memory"); - sync_is(); -} - void cache_wbinv_range(unsigned long start, unsigned long end) { - unsigned long i = start & ~(L1_CACHE_BYTES - 1); - - for (; i < end; i += L1_CACHE_BYTES) - asm volatile("dcache.cval1 %0\n"::"r"(i):"memory"); - sync_is(); - + dcache_wb_range(start, end); icache_inv_range(start, end); } EXPORT_SYMBOL(cache_wbinv_range); |