aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-03-23 09:50:03 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-03-23 16:20:20 -0400
commit80c5520811d3805adcb15c570ea5e2d489fa5d0b (patch)
treeae797a7f4af39f80e77526533d06ac23b439f0ab /mm/page_alloc.c
parentb3e3b302cf6dc8d60b67f0e84d1fa5648889c038 (diff)
parent8c083f081d0014057901c68a0a3e0f8ca7ac8d23 (diff)
Merge branch 'cpus4096' into irq/threaded
Conflicts: arch/parisc/kernel/irq.c kernel/irq/handle.c Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5c44ed49ca93..a92b0975b9a5 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2134,7 +2134,7 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask)
2134 int n, val; 2134 int n, val;
2135 int min_val = INT_MAX; 2135 int min_val = INT_MAX;
2136 int best_node = -1; 2136 int best_node = -1;
2137 node_to_cpumask_ptr(tmp, 0); 2137 const struct cpumask *tmp = cpumask_of_node(0);
2138 2138
2139 /* Use the local node if we haven't already */ 2139 /* Use the local node if we haven't already */
2140 if (!node_isset(node, *used_node_mask)) { 2140 if (!node_isset(node, *used_node_mask)) {
@@ -2155,8 +2155,8 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask)
2155 val += (n < node); 2155 val += (n < node);
2156 2156
2157 /* Give preference to headless and unused nodes */ 2157 /* Give preference to headless and unused nodes */
2158 node_to_cpumask_ptr_next(tmp, n); 2158 tmp = cpumask_of_node(n);
2159 if (!cpus_empty(*tmp)) 2159 if (!cpumask_empty(tmp))
2160 val += PENALTY_FOR_NODE_WITH_CPUS; 2160 val += PENALTY_FOR_NODE_WITH_CPUS;
2161 2161
2162 /* Slight preference for less loaded node */ 2162 /* Slight preference for less loaded node */