Commit 0bc14062 authored by Tejun Heo's avatar Tejun Heo Committed by Pekka Enberg
Browse files

vmalloc: pcpu_get/free_vm_areas() aren't needed on UP

These functions are used only by percpu memory allocator on SMP.
Don't build them on UP.
Signed-off-by: default avatarTejun Heo <>
Cc: Nick Piggin <>
parent 84c1cf62
......@@ -117,10 +117,12 @@ extern rwlock_t vmlist_lock;
extern struct vm_struct *vmlist;
extern __init void vm_area_register_early(struct vm_struct *vm, size_t align);
struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
const size_t *sizes, int nr_vms,
size_t align, gfp_t gfp_mask);
void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms);
#endif /* _LINUX_VMALLOC_H */
......@@ -2056,6 +2056,7 @@ void free_vm_area(struct vm_struct *area)
static struct vmap_area *node_to_va(struct rb_node *n)
return n ? rb_entry(n, struct vmap_area, rb_node) : NULL;
......@@ -2336,6 +2337,7 @@ void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms)
#endif /* CONFIG_SMP */
static void *s_start(struct seq_file *m, loff_t *pos)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment