From: Jes Sorensen <jes@trained-monkey.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, jbarnes@sgi.com
Subject: [patch] 2.6.4-rc1-mm2 page_alloc on NUMA
Date: Wed, 3 Mar 2004 11:57:44 -0500 [thread overview]
Message-ID: <16454.3720.225353.650939@gargle.gargle.HOWL> (raw)
Hi Andrew,
I need the following to compile page_alloc.c on a NUMA box. I can't say
if it's a perfect patch though as I am seeing other strange things with
.4-rc1-mm2 but this at least got it compiled and booted.
Problem is that a cpumask_t can be an array so just doing
if (cpumask_t) doesn't work.
Cheers,
Jes
--- linux-2.6.4-rc1-mm2/mm/page_alloc.c~ Wed Mar 3 06:47:37 2004
+++ linux-2.6.4-rc1-mm2/mm/page_alloc.c Wed Mar 3 07:55:29 2004
@@ -1166,7 +1166,7 @@
val = node_distance(node, n);
/* Give preference to headless and unused nodes */
- if (node_to_cpumask(n))
+ if (!cpus_empty(node_to_cpumask(n)))
val += PENALTY_FOR_NODE_WITH_CPUS;
/* Slight preference for less loaded node */
next reply other threads:[~2004-03-03 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-03 16:57 Jes Sorensen [this message]
2004-03-06 1:22 ` john stultz
2004-03-06 1:46 ` Andrew Morton
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=16454.3720.225353.650939@gargle.gargle.HOWL \
--to=jes@trained-monkey.org \
--cc=akpm@osdl.org \
--cc=jbarnes@sgi.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®