diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-30 23:03:50 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-30 23:03:50 -0400 |
commit | 558f6ab9106e6be701acb0257e7171df1bbccf04 (patch) | |
tree | 6e811633baeb676693c493f6c82bf785cab2771d /mm/page_alloc.c | |
parent | 15f7176eb1cccec0a332541285ee752b935c1c85 (diff) | |
parent | 65fb0d23fcddd8697c871047b700c78817bdaa43 (diff) |
Merge branch 'cpumask-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
Conflicts:
arch/x86/include/asm/topology.h
drivers/oprofile/buffer_sync.c
(Both cases: changed in Linus' tree, removed in Ingo's).
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a3803ea8c27d..f87e0d8df5a7 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2139,7 +2139,7 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2139 | int n, val; | 2139 | int n, val; |
2140 | int min_val = INT_MAX; | 2140 | int min_val = INT_MAX; |
2141 | int best_node = -1; | 2141 | int best_node = -1; |
2142 | node_to_cpumask_ptr(tmp, 0); | 2142 | const struct cpumask *tmp = cpumask_of_node(0); |
2143 | 2143 | ||
2144 | /* Use the local node if we haven't already */ | 2144 | /* Use the local node if we haven't already */ |
2145 | if (!node_isset(node, *used_node_mask)) { | 2145 | if (!node_isset(node, *used_node_mask)) { |
@@ -2160,8 +2160,8 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2160 | val += (n < node); | 2160 | val += (n < node); |
2161 | 2161 | ||
2162 | /* Give preference to headless and unused nodes */ | 2162 | /* Give preference to headless and unused nodes */ |
2163 | node_to_cpumask_ptr_next(tmp, n); | 2163 | tmp = cpumask_of_node(n); |
2164 | if (!cpus_empty(*tmp)) | 2164 | if (!cpumask_empty(tmp)) |
2165 | val += PENALTY_FOR_NODE_WITH_CPUS; | 2165 | val += PENALTY_FOR_NODE_WITH_CPUS; |
2166 | 2166 | ||
2167 | /* Slight preference for less loaded node */ | 2167 | /* Slight preference for less loaded node */ |