linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@linuxpower.ca>
To: Andrew Theurer <habanero@us.ibm.com>
Cc: anton@samba.org, "" <colpatch@us.ibm.com>,
	"Martin J. Bligh" <mbligh@aracnet.com>,
	Dave Hansen <haveblue@us.ibm.com>,
	Bill Hartner <bhartner@us.ibm.com>,
	Andrew Morton <akpm@zip.com.au>, Robert Love <rml@tech9.net>,
	"" <linux-kernel@vger.kernel.org>
Subject: Re: [patch] Re: Bug 619 - sched_best_cpu does not pick best cpu (1/1)
Date: Wed, 14 May 2003 21:26:18 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.50.0305142124440.19782-100000@montezuma.mastecende.com> (raw)
In-Reply-To: <200305142029.45413.habanero@us.ibm.com>

On Wed, 14 May 2003, Andrew Theurer wrote:

> +int nr_cpus_in_node[MAX_NUMNODES] = { [0 ... (MAX_NUMNODES -1)] = 0};
[snip...]
> +static inline int nr_cpus_node(int node)
> +{
> +	return nr_cpus_in_node[node];
> +}
> +
>  static inline int cpu_to_node(int cpu)
>  {
>  	int node;

How about an hweight() on node_to_cpumask?

	Zwane
-- 
function.linuxpower.ca

  reply	other threads:[~2003-05-15  1:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-06  1:25 [patch] Re: Bug 619 - sched_best_cpu does not pick best cpu (1/2) Matthew Dobson
2003-05-06  1:28 ` [patch] Re: Bug 619 - sched_best_cpu does not pick best cpu (2/2) Matthew Dobson
2003-05-06  2:09   ` David S. Miller
2003-05-06 11:06   ` Gabriel Paubert
2003-05-15  1:29 ` [patch] Re: Bug 619 - sched_best_cpu does not pick best cpu (1/1) Andrew Theurer
2003-05-15  1:26   ` Zwane Mwaikambo [this message]
2003-05-15  1:48     ` Andrew Theurer

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=Pine.LNX.4.50.0305142124440.19782-100000@montezuma.mastecende.com \
    --to=zwane@linuxpower.ca \
    --cc=akpm@zip.com.au \
    --cc=anton@samba.org \
    --cc=bhartner@us.ibm.com \
    --cc=colpatch@us.ibm.com \
    --cc=habanero@us.ibm.com \
    --cc=haveblue@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=rml@tech9.net \
    /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;
as well as URLs for NNTP newsgroup(s).