Commit 819807df authored by Rusty Russell's avatar Rusty Russell Committed by Paul Mundt

cpumask: arch_send_call_function_ipi_mask: sh

We're weaning the core code off handing cpumask's around on-stack.
This introduces arch_send_call_function_ipi_mask(), and by defining
it, the old arch_send_call_function_ipi is defined by the core code.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0cb73f4c
...@@ -43,7 +43,8 @@ void plat_start_cpu(unsigned int cpu, unsigned long entry_point); ...@@ -43,7 +43,8 @@ void plat_start_cpu(unsigned int cpu, unsigned long entry_point);
void plat_send_ipi(unsigned int cpu, unsigned int message); void plat_send_ipi(unsigned int cpu, unsigned int message);
void arch_send_call_function_single_ipi(int cpu); void arch_send_call_function_single_ipi(int cpu);
void arch_send_call_function_ipi(cpumask_t mask); extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
#define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask
#else #else
......
...@@ -171,11 +171,11 @@ void smp_send_stop(void) ...@@ -171,11 +171,11 @@ void smp_send_stop(void)
smp_call_function(stop_this_cpu, 0, 0); smp_call_function(stop_this_cpu, 0, 0);
} }
void arch_send_call_function_ipi(cpumask_t mask) void arch_send_call_function_ipi_mask(const struct cpumask *mask)
{ {
int cpu; int cpu;
for_each_cpu_mask(cpu, mask) for_each_cpu(cpu, mask)
plat_send_ipi(cpu, SMP_MSG_FUNCTION); plat_send_ipi(cpu, SMP_MSG_FUNCTION);
} }
......
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