Skip to content

Commit 9025fd4

Browse files
committed
csky: Remove unused cache implementation
Only for coding convention, these codes are unnecessary for abiv2. Signed-off-by: Guo Ren <[email protected]>
1 parent 359ae00 commit 9025fd4

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

arch/csky/mm/cachev2.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,9 @@ void dcache_wb_range(unsigned long start, unsigned long end)
5252
sync_is();
5353
}
5454

55-
void dcache_inv_range(unsigned long start, unsigned long end)
56-
{
57-
unsigned long i = start & ~(L1_CACHE_BYTES - 1);
58-
59-
for (; i < end; i += L1_CACHE_BYTES)
60-
asm volatile("dcache.civa %0\n"::"r"(i):"memory");
61-
sync_is();
62-
}
63-
6455
void cache_wbinv_range(unsigned long start, unsigned long end)
6556
{
66-
unsigned long i = start & ~(L1_CACHE_BYTES - 1);
67-
68-
for (; i < end; i += L1_CACHE_BYTES)
69-
asm volatile("dcache.cval1 %0\n"::"r"(i):"memory");
70-
sync_is();
71-
57+
dcache_wb_range(start, end);
7258
icache_inv_range(start, end);
7359
}
7460
EXPORT_SYMBOL(cache_wbinv_range);

0 commit comments

Comments
 (0)