Commit 48a26e60 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Remove wait argument of r4k_on_each_cpu

All callers were passing in 1 anyway.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c8c5f3fd
...@@ -44,13 +44,12 @@ ...@@ -44,13 +44,12 @@
* primary cache. * primary cache.
* o doesn't disable interrupts on the local CPU * o doesn't disable interrupts on the local CPU
*/ */
static inline void r4k_on_each_cpu(void (*func) (void *info), void *info, static inline void r4k_on_each_cpu(void (*func) (void *info), void *info)
int wait)
{ {
preempt_disable(); preempt_disable();
#if !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC) #if !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC)
smp_call_function(func, info, wait); smp_call_function(func, info, 1);
#endif #endif
func(info); func(info);
preempt_enable(); preempt_enable();
...@@ -364,7 +363,7 @@ static inline void local_r4k___flush_cache_all(void * args) ...@@ -364,7 +363,7 @@ static inline void local_r4k___flush_cache_all(void * args)
static void r4k___flush_cache_all(void) static void r4k___flush_cache_all(void)
{ {
r4k_on_each_cpu(local_r4k___flush_cache_all, NULL, 1); r4k_on_each_cpu(local_r4k___flush_cache_all, NULL);
} }
static inline int has_valid_asid(const struct mm_struct *mm) static inline int has_valid_asid(const struct mm_struct *mm)
...@@ -411,7 +410,7 @@ static void r4k_flush_cache_range(struct vm_area_struct *vma, ...@@ -411,7 +410,7 @@ static void r4k_flush_cache_range(struct vm_area_struct *vma,
int exec = vma->vm_flags & VM_EXEC; int exec = vma->vm_flags & VM_EXEC;
if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc))
r4k_on_each_cpu(local_r4k_flush_cache_range, vma, 1); r4k_on_each_cpu(local_r4k_flush_cache_range, vma);
} }
static inline void local_r4k_flush_cache_mm(void * args) static inline void local_r4k_flush_cache_mm(void * args)
...@@ -443,7 +442,7 @@ static void r4k_flush_cache_mm(struct mm_struct *mm) ...@@ -443,7 +442,7 @@ static void r4k_flush_cache_mm(struct mm_struct *mm)
if (!cpu_has_dc_aliases) if (!cpu_has_dc_aliases)
return; return;
r4k_on_each_cpu(local_r4k_flush_cache_mm, mm, 1); r4k_on_each_cpu(local_r4k_flush_cache_mm, mm);
} }
struct flush_cache_page_args { struct flush_cache_page_args {
...@@ -535,7 +534,7 @@ static void r4k_flush_cache_page(struct vm_area_struct *vma, ...@@ -535,7 +534,7 @@ static void r4k_flush_cache_page(struct vm_area_struct *vma,
args.addr = addr; args.addr = addr;
args.pfn = pfn; args.pfn = pfn;
r4k_on_each_cpu(local_r4k_flush_cache_page, &args, 1); r4k_on_each_cpu(local_r4k_flush_cache_page, &args);
} }
static inline void local_r4k_flush_data_cache_page(void * addr) static inline void local_r4k_flush_data_cache_page(void * addr)
...@@ -548,8 +547,7 @@ static void r4k_flush_data_cache_page(unsigned long addr) ...@@ -548,8 +547,7 @@ static void r4k_flush_data_cache_page(unsigned long addr)
if (in_atomic()) if (in_atomic())
local_r4k_flush_data_cache_page((void *)addr); local_r4k_flush_data_cache_page((void *)addr);
else else
r4k_on_each_cpu(local_r4k_flush_data_cache_page, (void *) addr, r4k_on_each_cpu(local_r4k_flush_data_cache_page, (void *) addr);
1);
} }
struct flush_icache_range_args { struct flush_icache_range_args {
...@@ -590,7 +588,7 @@ static void r4k_flush_icache_range(unsigned long start, unsigned long end) ...@@ -590,7 +588,7 @@ static void r4k_flush_icache_range(unsigned long start, unsigned long end)
args.start = start; args.start = start;
args.end = end; args.end = end;
r4k_on_each_cpu(local_r4k_flush_icache_range_ipi, &args, 1); r4k_on_each_cpu(local_r4k_flush_icache_range_ipi, &args);
instruction_hazard(); instruction_hazard();
} }
...@@ -711,7 +709,7 @@ static void local_r4k_flush_cache_sigtramp(void * arg) ...@@ -711,7 +709,7 @@ static void local_r4k_flush_cache_sigtramp(void * arg)
static void r4k_flush_cache_sigtramp(unsigned long addr) static void r4k_flush_cache_sigtramp(unsigned long addr)
{ {
r4k_on_each_cpu(local_r4k_flush_cache_sigtramp, (void *) addr, 1); r4k_on_each_cpu(local_r4k_flush_cache_sigtramp, (void *) addr);
} }
static void r4k_flush_icache_all(void) static void r4k_flush_icache_all(void)
......
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