[PATCH] fix NUMA compile with large cpumasks
From: Anton Blanchard (anton_at_samba.org)
Date: 03/13/04
- Previous message: Marc Giger: "Re: 2.6.4 on Alpha uninterruptible sleep of processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 13 Mar 2004 21:23:04 +1100 To: torvalds@osdl.org
Hi,
The recent NUMA changes fail to compile with large cpumasks, we need
to use a temporary to get around the type checking.
Anton
---
gr26_work-anton/mm/page_alloc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
diff -puN mm/page_alloc.c~numacompile mm/page_alloc.c
--- gr26_work/mm/page_alloc.c~numacompile 2004-03-13 02:27:10.474086886 -0600
+++ gr26_work-anton/mm/page_alloc.c 2004-03-13 02:28:15.514771414 -0600
@@ -1155,6 +1155,8 @@ static int __init find_next_best_node(in
int best_node = -1;
for (i = 0; i < numnodes; i++) {
+ cpumask_t tmp;
+
/* Start from local node */
n = (node+i)%numnodes;
@@ -1166,7 +1168,8 @@ static int __init find_next_best_node(in
val = node_distance(node, n);
/* Give preference to headless and unused nodes */
- if (!cpus_empty(node_to_cpumask(n)))
+ tmp = node_to_cpumask(n);
+ if (!cpus_empty(tmp))
val += PENALTY_FOR_NODE_WITH_CPUS;
/* Slight preference for less loaded node */
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Marc Giger: "Re: 2.6.4 on Alpha uninterruptible sleep of processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]