[PATCH] add smp_call_function_map and smp_call_function_single
Michael Ellerman
michael at ellerman.id.au
Thu May 3 10:53:58 EST 2007
On Wed, 2007-05-02 at 12:12 -0500, Will Schmidt wrote:
> Add a new function named smp_call_function_single(). This matches a generic
> prototype from include/linux/smp.h.
>
> Add a function smp_call_function_map(). This is, for the most part, a rename
> of smp_call_function, with some added cpumask support. smp_call_function and
> smp_call_function_single call into smp_call_function_map.
>
> Lightly tested on 970mp (blade), power4 and power5.
>
> Signed-off-by: Will Schmidt <will_schmidt at vnet.ibm.com>
> cc: Anton Blanchard <anton at samba.org>
> ---
>
> arch/powerpc/kernel/smp.c | 73 ++++++++++++++++++++++++++++++++-------------
> 1 files changed, 52 insertions(+), 21 deletions(-)
>
> diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
> index 924d692..4878588 100644
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -176,10 +176,10 @@ static struct call_data_struct {
> #define SMP_CALL_TIMEOUT 8
>
> /*
> - * This function sends a 'generic call function' IPI to all other CPUs
> - * in the system.
> + * These functions send a 'generic call function' IPI to other online
> + * CPUS in the system.
> *
> - * [SUMMARY] Run a function on all other CPUs.
> + * [SUMMARY] Run a function on other CPUs.
> * <func> The function to run. This must be fast and non-blocking.
> * <info> An arbitrary pointer to pass to the function.
> * <nonatomic> currently unused.
While you're there, or as a separate patch, can you fix up this
not-quite-kernel-doc commenting?
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070503/6394f793/attachment.pgp>
More information about the Linuxppc-dev
mailing list