diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 20:31:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 20:31:36 -0400 |
commit | 0fc0531e0a2174377a86fd6953ecaa00287d8f70 (patch) | |
tree | afe56978729300df96b002a064c9de927fadcfab /mm/vmalloc.c | |
parent | 91b745016c12d440386c40fb76ab69c8e08cbc06 (diff) | |
parent | 9329ba9704f6bd51a735982e0d4a3eed72c3294f (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: update comments to reflect that percpu allocations are always zero-filled
percpu: Optimize __get_cpu_var()
x86, percpu: Optimize this_cpu_ptr
percpu: clear memory allocated with the km allocator
percpu: fix build breakage on s390 and cleanup build configuration tests
percpu: use percpu allocator on UP too
percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
vmalloc: pcpu_get/free_vm_areas() aren't needed on UP
Fixed up trivial conflicts in include/linux/percpu.h
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d8087f0db507..9f909622a25e 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -2065,6 +2065,7 @@ void free_vm_area(struct vm_struct *area) | |||
2065 | } | 2065 | } |
2066 | EXPORT_SYMBOL_GPL(free_vm_area); | 2066 | EXPORT_SYMBOL_GPL(free_vm_area); |
2067 | 2067 | ||
2068 | #ifdef CONFIG_SMP | ||
2068 | static struct vmap_area *node_to_va(struct rb_node *n) | 2069 | static struct vmap_area *node_to_va(struct rb_node *n) |
2069 | { | 2070 | { |
2070 | return n ? rb_entry(n, struct vmap_area, rb_node) : NULL; | 2071 | return n ? rb_entry(n, struct vmap_area, rb_node) : NULL; |
@@ -2345,6 +2346,7 @@ void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) | |||
2345 | free_vm_area(vms[i]); | 2346 | free_vm_area(vms[i]); |
2346 | kfree(vms); | 2347 | kfree(vms); |
2347 | } | 2348 | } |
2349 | #endif /* CONFIG_SMP */ | ||
2348 | 2350 | ||
2349 | #ifdef CONFIG_PROC_FS | 2351 | #ifdef CONFIG_PROC_FS |
2350 | static void *s_start(struct seq_file *m, loff_t *pos) | 2352 | static void *s_start(struct seq_file *m, loff_t *pos) |