diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-05 13:33:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-05 13:33:07 -0400 |
commit | 90975ef71246c5c688ead04e8ff6f36dc92d28b3 (patch) | |
tree | eda44b2efe91509719b0e62219c2efec13a9e762 /mm | |
parent | cab4e4c43f92582a2bfc026137b3d8a175bd0360 (diff) | |
parent | 558f6ab9106e6be701acb0257e7171df1bbccf04 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-cpumask
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-cpumask: (36 commits)
cpumask: remove cpumask allocation from idle_balance, fix
numa, cpumask: move numa_node_id default implementation to topology.h, fix
cpumask: remove cpumask allocation from idle_balance
x86: cpumask: x86 mmio-mod.c use cpumask_var_t for downed_cpus
x86: cpumask: update 32-bit APM not to mug current->cpus_allowed
x86: microcode: cleanup
x86: cpumask: use work_on_cpu in arch/x86/kernel/microcode_core.c
cpumask: fix CONFIG_CPUMASK_OFFSTACK=y cpu hotunplug crash
numa, cpumask: move numa_node_id default implementation to topology.h
cpumask: convert node_to_cpumask_map[] to cpumask_var_t
cpumask: remove x86 cpumask_t uses.
cpumask: use cpumask_var_t in uv_flush_tlb_others.
cpumask: remove cpumask_t assignment from vector_allocation_domain()
cpumask: make Xen use the new operators.
cpumask: clean up summit's send_IPI functions
cpumask: use new cpumask functions throughout x86
x86: unify cpu_callin_mask/cpu_callout_mask/cpu_initialized_mask/cpu_sibling_setup_mask
cpumask: convert struct cpuinfo_x86's llc_shared_map to cpumask_var_t
cpumask: convert node_to_cpumask_map[] to cpumask_var_t
x86: unify 32 and 64-bit node_to_cpumask_map
...
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 6 | ||||
-rw-r--r-- | mm/quicklist.c | 2 | ||||
-rw-r--r-- | mm/slab.c | 2 | ||||
-rw-r--r-- | mm/vmscan.c | 6 |
4 files changed, 9 insertions, 7 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3f30189896fd..e2f26991fff1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2128,7 +2128,7 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2128 | int n, val; | 2128 | int n, val; |
2129 | int min_val = INT_MAX; | 2129 | int min_val = INT_MAX; |
2130 | int best_node = -1; | 2130 | int best_node = -1; |
2131 | node_to_cpumask_ptr(tmp, 0); | 2131 | const struct cpumask *tmp = cpumask_of_node(0); |
2132 | 2132 | ||
2133 | /* Use the local node if we haven't already */ | 2133 | /* Use the local node if we haven't already */ |
2134 | if (!node_isset(node, *used_node_mask)) { | 2134 | if (!node_isset(node, *used_node_mask)) { |
@@ -2149,8 +2149,8 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2149 | val += (n < node); | 2149 | val += (n < node); |
2150 | 2150 | ||
2151 | /* Give preference to headless and unused nodes */ | 2151 | /* Give preference to headless and unused nodes */ |
2152 | node_to_cpumask_ptr_next(tmp, n); | 2152 | tmp = cpumask_of_node(n); |
2153 | if (!cpus_empty(*tmp)) | 2153 | if (!cpumask_empty(tmp)) |
2154 | val += PENALTY_FOR_NODE_WITH_CPUS; | 2154 | val += PENALTY_FOR_NODE_WITH_CPUS; |
2155 | 2155 | ||
2156 | /* Slight preference for less loaded node */ | 2156 | /* Slight preference for less loaded node */ |
diff --git a/mm/quicklist.c b/mm/quicklist.c index 8dbb6805ef35..e66d07d1b4ff 100644 --- a/mm/quicklist.c +++ b/mm/quicklist.c | |||
@@ -29,7 +29,7 @@ static unsigned long max_pages(unsigned long min_pages) | |||
29 | int node = numa_node_id(); | 29 | int node = numa_node_id(); |
30 | struct zone *zones = NODE_DATA(node)->node_zones; | 30 | struct zone *zones = NODE_DATA(node)->node_zones; |
31 | int num_cpus_on_node; | 31 | int num_cpus_on_node; |
32 | node_to_cpumask_ptr(cpumask_on_node, node); | 32 | const struct cpumask *cpumask_on_node = cpumask_of_node(node); |
33 | 33 | ||
34 | node_free_pages = | 34 | node_free_pages = |
35 | #ifdef CONFIG_ZONE_DMA | 35 | #ifdef CONFIG_ZONE_DMA |
@@ -1160,7 +1160,7 @@ static void __cpuinit cpuup_canceled(long cpu) | |||
1160 | struct kmem_cache *cachep; | 1160 | struct kmem_cache *cachep; |
1161 | struct kmem_list3 *l3 = NULL; | 1161 | struct kmem_list3 *l3 = NULL; |
1162 | int node = cpu_to_node(cpu); | 1162 | int node = cpu_to_node(cpu); |
1163 | node_to_cpumask_ptr(mask, node); | 1163 | const struct cpumask *mask = cpumask_of_node(node); |
1164 | 1164 | ||
1165 | list_for_each_entry(cachep, &cache_chain, next) { | 1165 | list_for_each_entry(cachep, &cache_chain, next) { |
1166 | struct array_cache *nc; | 1166 | struct array_cache *nc; |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 425244988bb2..39fdfb14eeaa 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1967,7 +1967,7 @@ static int kswapd(void *p) | |||
1967 | struct reclaim_state reclaim_state = { | 1967 | struct reclaim_state reclaim_state = { |
1968 | .reclaimed_slab = 0, | 1968 | .reclaimed_slab = 0, |
1969 | }; | 1969 | }; |
1970 | node_to_cpumask_ptr(cpumask, pgdat->node_id); | 1970 | const struct cpumask *cpumask = cpumask_of_node(pgdat->node_id); |
1971 | 1971 | ||
1972 | lockdep_set_current_reclaim_state(GFP_KERNEL); | 1972 | lockdep_set_current_reclaim_state(GFP_KERNEL); |
1973 | 1973 | ||
@@ -2204,7 +2204,9 @@ static int __devinit cpu_callback(struct notifier_block *nfb, | |||
2204 | if (action == CPU_ONLINE || action == CPU_ONLINE_FROZEN) { | 2204 | if (action == CPU_ONLINE || action == CPU_ONLINE_FROZEN) { |
2205 | for_each_node_state(nid, N_HIGH_MEMORY) { | 2205 | for_each_node_state(nid, N_HIGH_MEMORY) { |
2206 | pg_data_t *pgdat = NODE_DATA(nid); | 2206 | pg_data_t *pgdat = NODE_DATA(nid); |
2207 | node_to_cpumask_ptr(mask, pgdat->node_id); | 2207 | const struct cpumask *mask; |
2208 | |||
2209 | mask = cpumask_of_node(pgdat->node_id); | ||
2208 | 2210 | ||
2209 | if (cpumask_any_and(cpu_online_mask, mask) < nr_cpu_ids) | 2211 | if (cpumask_any_and(cpu_online_mask, mask) < nr_cpu_ids) |
2210 | /* One of our CPUs online: restore mask */ | 2212 | /* One of our CPUs online: restore mask */ |