mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] 2.6.4-rc1-mm2 page_alloc on NUMA
@ 2004-03-03 16:57 Jes Sorensen
  2004-03-06  1:22 ` john stultz
  0 siblings, 1 reply; 3+ messages in thread
From: Jes Sorensen @ 2004-03-03 16:57 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, jbarnes

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 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-06  1:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 16:57 [patch] 2.6.4-rc1-mm2 page_alloc on NUMA Jes Sorensen
2004-03-06  1:22 ` john stultz
2004-03-06  1:46   ` Andrew Morton

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®