[PARISC] Make local cache flushes take a void *
Make flush_data_cache_local, flush_instruction_cache_local and flush_tlb_all_local take a void * so they don't have to be cast when using on_each_cpu(). This becomes a problem when on_each_cpu is a macro (as it is in current -mm). Also move the prototype of flush_tlb_all_local into tlbflush.h and remove its declaration from .c files. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
committed by
Kyle McMartin
parent
8039de10aa
commit
1b2425e3c7
@@ -29,14 +29,14 @@
|
||||
|
||||
#define SMP_CACHE_BYTES L1_CACHE_BYTES
|
||||
|
||||
extern void flush_data_cache_local(void); /* flushes local data-cache only */
|
||||
extern void flush_instruction_cache_local(void); /* flushes local code-cache only */
|
||||
extern void flush_data_cache_local(void *); /* flushes local data-cache only */
|
||||
extern void flush_instruction_cache_local(void *); /* flushes local code-cache only */
|
||||
#ifdef CONFIG_SMP
|
||||
extern void flush_data_cache(void); /* flushes data-cache only (all processors) */
|
||||
extern void flush_instruction_cache(void); /* flushes i-cache only (all processors) */
|
||||
#else
|
||||
#define flush_data_cache flush_data_cache_local
|
||||
#define flush_instruction_cache flush_instruction_cache_local
|
||||
#define flush_data_cache() flush_data_cache_local(NULL)
|
||||
#define flush_instruction_cache() flush_instruction_cache_local(NULL)
|
||||
#endif
|
||||
|
||||
extern void parisc_cache_init(void); /* initializes cache-flushing */
|
||||
|
Reference in New Issue
Block a user