From 94fb8f99ea595337c144aead7b4c48a98c7dfd2f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Dec 2008 09:05:17 +1030 Subject: [PATCH] --- yaml --- r: 125670 b: refs/heads/master c: ce47d974f71af26d00832e83a43ac79bec272d99 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/smp.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fcb58bdc7b46..57d55329dfc0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 54b11e6d57a10aa9d0009efd93873e17bffd5d30 +refs/heads/master: ce47d974f71af26d00832e83a43ac79bec272d99 diff --git a/trunk/kernel/smp.c b/trunk/kernel/smp.c index 9f0eafed1399..172b18268909 100644 --- a/trunk/kernel/smp.c +++ b/trunk/kernel/smp.c @@ -266,6 +266,12 @@ void __smp_call_function_single(int cpu, struct call_single_data *data) generic_exec_single(cpu, data); } +/* FIXME: Shim for archs using old arch_send_call_function_ipi API. */ +#ifndef arch_send_call_function_ipi_mask +#define arch_send_call_function_ipi_mask(maskp) \ + arch_send_call_function_ipi(*(maskp)) +#endif + /** * smp_call_function_many(): Run a function on a set of other CPUs. * @mask: The set of cpus to run on (only runs on online subset). @@ -343,7 +349,7 @@ void smp_call_function_many(const struct cpumask *mask, smp_mb(); /* Send a message to all CPUs in the map */ - arch_send_call_function_ipi(*to_cpumask(data->cpumask_bits)); + arch_send_call_function_ipi_mask(to_cpumask(data->cpumask_bits)); /* optionally wait for the CPUs to complete */ if (wait)