Commit c86df6c0 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer

MIPS: mm: Remove local_cache_flush_page

After ide.h is gone, there are no users of local_cache_flush_page() left.
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 461ba3e7
...@@ -110,7 +110,6 @@ extern void copy_from_user_page(struct vm_area_struct *vma, ...@@ -110,7 +110,6 @@ extern void copy_from_user_page(struct vm_area_struct *vma,
unsigned long len); unsigned long len);
extern void (*flush_icache_all)(void); extern void (*flush_icache_all)(void);
extern void (*local_flush_data_cache_page)(void * addr);
extern void (*flush_data_cache_page)(unsigned long addr); extern void (*flush_data_cache_page)(unsigned long addr);
/* Run kernel code uncached, useful for cache probing functions. */ /* Run kernel code uncached, useful for cache probing functions. */
......
...@@ -261,10 +261,6 @@ static void r3k_flush_cache_page(struct vm_area_struct *vma, ...@@ -261,10 +261,6 @@ static void r3k_flush_cache_page(struct vm_area_struct *vma,
r3k_flush_icache_range(kaddr, kaddr + PAGE_SIZE); r3k_flush_icache_range(kaddr, kaddr + PAGE_SIZE);
} }
static void local_r3k_flush_data_cache_page(void *addr)
{
}
static void r3k_flush_data_cache_page(unsigned long addr) static void r3k_flush_data_cache_page(unsigned long addr)
{ {
} }
...@@ -302,7 +298,6 @@ void r3k_cache_init(void) ...@@ -302,7 +298,6 @@ void r3k_cache_init(void)
__flush_kernel_vmap_range = r3k_flush_kernel_vmap_range; __flush_kernel_vmap_range = r3k_flush_kernel_vmap_range;
local_flush_data_cache_page = local_r3k_flush_data_cache_page;
flush_data_cache_page = r3k_flush_data_cache_page; flush_data_cache_page = r3k_flush_data_cache_page;
_dma_cache_wback_inv = r3k_dma_cache_wback_inv; _dma_cache_wback_inv = r3k_dma_cache_wback_inv;
......
...@@ -1745,7 +1745,6 @@ void r4k_cache_init(void) ...@@ -1745,7 +1745,6 @@ void r4k_cache_init(void)
__flush_kernel_vmap_range = r4k_flush_kernel_vmap_range; __flush_kernel_vmap_range = r4k_flush_kernel_vmap_range;
flush_icache_all = r4k_flush_icache_all; flush_icache_all = r4k_flush_icache_all;
local_flush_data_cache_page = local_r4k_flush_data_cache_page;
flush_data_cache_page = r4k_flush_data_cache_page; flush_data_cache_page = r4k_flush_data_cache_page;
flush_icache_range = r4k_flush_icache_range; flush_icache_range = r4k_flush_icache_range;
local_flush_icache_range = local_r4k_flush_icache_range; local_flush_icache_range = local_r4k_flush_icache_range;
...@@ -1788,7 +1787,6 @@ void r4k_cache_init(void) ...@@ -1788,7 +1787,6 @@ void r4k_cache_init(void)
/* I$ fills from D$ just by emptying the write buffers */ /* I$ fills from D$ just by emptying the write buffers */
flush_cache_page = (void *)b5k_instruction_hazard; flush_cache_page = (void *)b5k_instruction_hazard;
flush_cache_range = (void *)b5k_instruction_hazard; flush_cache_range = (void *)b5k_instruction_hazard;
local_flush_data_cache_page = (void *)b5k_instruction_hazard;
flush_data_cache_page = (void *)b5k_instruction_hazard; flush_data_cache_page = (void *)b5k_instruction_hazard;
flush_icache_range = (void *)b5k_instruction_hazard; flush_icache_range = (void *)b5k_instruction_hazard;
local_flush_icache_range = (void *)b5k_instruction_hazard; local_flush_icache_range = (void *)b5k_instruction_hazard;
...@@ -1808,7 +1806,6 @@ void r4k_cache_init(void) ...@@ -1808,7 +1806,6 @@ void r4k_cache_init(void)
flush_cache_range = (void *)cache_noop; flush_cache_range = (void *)cache_noop;
flush_icache_all = (void *)cache_noop; flush_icache_all = (void *)cache_noop;
flush_data_cache_page = (void *)cache_noop; flush_data_cache_page = (void *)cache_noop;
local_flush_data_cache_page = (void *)cache_noop;
break; break;
} }
} }
......
...@@ -49,11 +49,9 @@ void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size); ...@@ -49,11 +49,9 @@ void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size);
EXPORT_SYMBOL_GPL(__flush_kernel_vmap_range); EXPORT_SYMBOL_GPL(__flush_kernel_vmap_range);
/* MIPS specific cache operations */ /* MIPS specific cache operations */
void (*local_flush_data_cache_page)(void * addr);
void (*flush_data_cache_page)(unsigned long addr); void (*flush_data_cache_page)(unsigned long addr);
void (*flush_icache_all)(void); void (*flush_icache_all)(void);
EXPORT_SYMBOL_GPL(local_flush_data_cache_page);
EXPORT_SYMBOL(flush_data_cache_page); EXPORT_SYMBOL(flush_data_cache_page);
EXPORT_SYMBOL(flush_icache_all); EXPORT_SYMBOL(flush_icache_all);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment