提交 9025fd48 编写于 作者: G Guo Ren

csky: Remove unused cache implementation

Only for coding convention, these codes are unnecessary for abiv2.
Signed-off-by: NGuo Ren <guoren@linux.alibaba.com>
上级 359ae00d
...@@ -52,23 +52,9 @@ void dcache_wb_range(unsigned long start, unsigned long end) ...@@ -52,23 +52,9 @@ void dcache_wb_range(unsigned long start, unsigned long end)
sync_is(); 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) void cache_wbinv_range(unsigned long start, unsigned long end)
{ {
unsigned long i = start & ~(L1_CACHE_BYTES - 1); dcache_wb_range(start, end);
for (; i < end; i += L1_CACHE_BYTES)
asm volatile("dcache.cval1 %0\n"::"r"(i):"memory");
sync_is();
icache_inv_range(start, end); icache_inv_range(start, end);
} }
EXPORT_SYMBOL(cache_wbinv_range); EXPORT_SYMBOL(cache_wbinv_range);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册