diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-24 15:52:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-24 15:52:27 -0500 |
commit | 87b203079ed949de52f0d92aeae20e5e0116c12f (patch) | |
tree | 1878756f936963822ed2d51a15db1da5814973e7 /mm/vmalloc.c | |
parent | 58105ef1857112a186696c9b8957020090226a28 (diff) | |
parent | a852cbfaaf8122827602027b1614971cfd832304 (diff) |
Merge branch 'x86/core' into core/percpu
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 75f49d312e8c..903cad46e796 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1012,6 +1012,8 @@ void __init vmalloc_init(void) | |||
1012 | void unmap_kernel_range(unsigned long addr, unsigned long size) | 1012 | void unmap_kernel_range(unsigned long addr, unsigned long size) |
1013 | { | 1013 | { |
1014 | unsigned long end = addr + size; | 1014 | unsigned long end = addr + size; |
1015 | |||
1016 | flush_cache_vunmap(addr, end); | ||
1015 | vunmap_page_range(addr, end); | 1017 | vunmap_page_range(addr, end); |
1016 | flush_tlb_kernel_range(addr, end); | 1018 | flush_tlb_kernel_range(addr, end); |
1017 | } | 1019 | } |
@@ -1106,6 +1108,14 @@ struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags, | |||
1106 | } | 1108 | } |
1107 | EXPORT_SYMBOL_GPL(__get_vm_area); | 1109 | EXPORT_SYMBOL_GPL(__get_vm_area); |
1108 | 1110 | ||
1111 | struct vm_struct *__get_vm_area_caller(unsigned long size, unsigned long flags, | ||
1112 | unsigned long start, unsigned long end, | ||
1113 | void *caller) | ||
1114 | { | ||
1115 | return __get_vm_area_node(size, flags, start, end, -1, GFP_KERNEL, | ||
1116 | caller); | ||
1117 | } | ||
1118 | |||
1109 | /** | 1119 | /** |
1110 | * get_vm_area - reserve a contiguous kernel virtual area | 1120 | * get_vm_area - reserve a contiguous kernel virtual area |
1111 | * @size: size of the area | 1121 | * @size: size of the area |