]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc64: fix NUMA compile with large cpumasks
authorAndrew Morton <akpm@osdl.org>
Sat, 13 Mar 2004 11:25:29 +0000 (03:25 -0800)
committerLen Brown <len.brown@intel.com>
Sat, 13 Mar 2004 11:25:29 +0000 (03:25 -0800)
From: Anton Blanchard <anton@samba.org>

The recent NUMA changes fail to compile with large cpumasks, we need to use
a temporary to get around the type checking.

mm/page_alloc.c

index 17bb924fc08cabc8c077d344671d976816636570..9334a2d20fd2347f338226642b74dfca8ea0d00b 100644 (file)
@@ -1115,6 +1115,8 @@ static int __init find_next_best_node(int node, void *used_node_mask)
        int best_node = -1;
 
        for (i = 0; i < numnodes; i++) {
+               cpumask_t tmp;
+
                /* Start from local node */
                n = (node+i)%numnodes;
 
@@ -1126,7 +1128,8 @@ static int __init find_next_best_node(int node, void *used_node_mask)
                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 */