From: Rusty Russell <rusty@rustcorp.com.au>
To: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>,
Eric Dumazet <eric.dumazet@gmail.com>
Cc: akpm@linux-foundation.org, kosaki.motohiro@gmail.com,
linux-kernel@vger.kernel.org, venki@google.com,
Mike Travis <travis@sgi.com>
Subject: Re: [PATCH] lib/cpumask.c: Optimize __any_online_cpu() calculation
Date: Thu, 16 Feb 2012 09:21:23 +1030 [thread overview]
Message-ID: <87pqdfbthw.fsf@rustcorp.com.au> (raw)
In-Reply-To: <4F3BBED4.2090101@linux.vnet.ibm.com>
On Wed, 15 Feb 2012 19:49:00 +0530, "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com> wrote:
> On 02/15/2012 06:27 PM, Eric Dumazet wrote:
>
> > Le mercredi 15 février 2012 à 18:05 +0530, Srivatsa S. Bhat a écrit :
> >> __any_online_cpu() uses a for loop at the moment.
> >> Instead, use cpumask_* operations to speed it up.
> >>
> >> Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
> >> ---
> >> Actually, the patch posted at https://lkml.org/lkml/2012/2/15/101 removed
> >> the last user of any_online_cpu() (and hence __any_online_cpu()).
> >> However, since this is an exported symbol, I refrained from removing this
> >> function altogether.
> >
> > Just remove the export/function and eventually leave the helper ?
> >
> > #define any_online_cpu(mask) cpumask_any_and(mask, cpu_online_mask)
> >
>
>
> That sounds good. Here is v2 of the patch.
> (Since this v2 touches include/linux/cpumask.h, I rebased it on top of the
> patch posted at: https://lkml.org/lkml/2012/2/15/2. Even without that
> patch it should apply with minor line number changes..)
No. Just git rid of the only caller of any_online_cpu():
arch/ia64/kernel/smpboot.c:693: new_cpei_cpu = any_online_cpu(cpu_online_map);
Thanks,
Rusty.
next prev parent reply other threads:[~2012-02-16 1:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 12:35 [PATCH] lib/cpumask.c: Optimize __any_online_cpu() calculation Srivatsa S. Bhat
2012-02-15 12:57 ` Eric Dumazet
2012-02-15 14:19 ` Srivatsa S. Bhat
2012-02-15 22:51 ` Rusty Russell [this message]
2012-02-17 12:19 ` Srivatsa S. Bhat
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=87pqdfbthw.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=akpm@linux-foundation.org \
--cc=eric.dumazet@gmail.com \
--cc=kosaki.motohiro@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srivatsa.bhat@linux.vnet.ibm.com \
--cc=travis@sgi.com \
--cc=venki@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.