From: Jan Glauber <glauber@gmx.de>
To: Anton Blanchard <anton@samba.org>
Cc: Linux Architecture List <linux-arch@vger.kernel.org>
Subject: Re: [Patch] SMP call function cleanup
Date: Thu, 22 Apr 2004 16:00:08 +0200 [thread overview]
Message-ID: <1082642408.1332.56.camel@halo> (raw)
In-Reply-To: <20040422123318.GX22027@krispykreme>
On Thu, 2004-04-22 at 14:33, Anton Blanchard wrote:
> Hi,
>
> > I've been looking into the SMP call function stuff on different
> > archs and found many different functions...
> >
> > In the common code part there are 2 functions:
> > smp_call_function() // call a function on all CPUs but my own
> > on_each_cpu() // call a function on all CPUs
> >
> > Many archs need an additional function to call a function on a
> > specific CPU:
>
> We noticed this too. Rusty created on_one_cpu below and had a generic
> (but costly) implementation so architectures could switch across when they
> wanted.
Hm, why can't you just do a:
for_each_cpu_mask(cpu, mask)
send_IPI_single(cpu)
Jan
---
Jan Glauber
Linux on zSeries Development
IBM Deutschland Entwicklung GmbH
Phone: +49 7031 161911 Mail: jang@de.ibm.com
next prev parent reply other threads:[~2004-04-22 14:01 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-22 12:21 [Patch] SMP call function cleanup Jan Glauber
2004-04-22 12:28 ` William Lee Irwin III
2004-04-22 12:37 ` Anton Blanchard
2004-04-22 12:49 ` William Lee Irwin III
2004-04-22 12:59 ` James Bottomley
2004-04-22 13:24 ` William Lee Irwin III
2004-04-22 13:46 ` James Bottomley
2004-04-22 14:06 ` William Lee Irwin III
[not found] ` <1082641822.1329.45.camel@halo>
[not found] ` <1082642332.1778.39.camel@mulgrave>
2004-04-22 14:15 ` Jan Glauber
2004-04-23 0:05 ` Benjamin Herrenschmidt
2004-04-23 0:21 ` Anton Blanchard
2004-04-23 0:32 ` Benjamin Herrenschmidt
2004-04-22 13:58 ` Jan Glauber
2004-04-22 12:33 ` Anton Blanchard
2004-04-22 14:00 ` Jan Glauber [this message]
2004-04-22 14:13 ` William Lee Irwin III
2004-04-23 0:04 ` Benjamin Herrenschmidt
2004-04-23 23:38 ` David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2004-04-23 6:46 Martin Schwidefsky
2004-04-23 6:53 Martin Schwidefsky
2004-04-23 7:05 ` Anton Blanchard
2004-04-23 9:00 ` Russell King
2004-04-23 7:46 Martin Schwidefsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1082642408.1332.56.camel@halo \
--to=glauber@gmx.de \
--cc=anton@samba.org \
--cc=linux-arch@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox