]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/vmalloc.h
vmalloc: pcpu_get/free_vm_areas() aren't needed on UP
[karo-tx-linux.git] / include / linux / vmalloc.h
index de05e96e0a70587efd6a3043852c610796a1a140..63a4fe6d51bd68277634943cb062dc4ea62fced1 100644 (file)
@@ -7,6 +7,8 @@
 
 struct vm_area_struct;         /* vma defining user mapping in mm_types.h */
 
+extern bool vmap_lazy_unmap;
+
 /* bits in flags of vmalloc's vm_struct below */
 #define VM_IOREMAP     0x00000001      /* ioremap() and friends */
 #define VM_ALLOC       0x00000002      /* vmalloc() */
@@ -115,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);
 
+#ifdef CONFIG_SMP
 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
 
 #endif /* _LINUX_VMALLOC_H */