summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_64.h
diff options
context:
space:
mode:
authorHaicheng Li2010-05-19 11:42:14 +0200
committerH. Peter Anvin2010-08-26 23:02:29 +0200
commit6afb5157b9eba4092e2f0f54d24a3806409bdde5 (patch)
tree5d213ef0366441af288b3a293557df09cb45cdca /arch/x86/include/asm/pgtable_64.h
parentx86, mm: Avoid unnecessary TLB flush (diff)
downloadkernel-qcow2-linux-6afb5157b9eba4092e2f0f54d24a3806409bdde5.tar.gz
kernel-qcow2-linux-6afb5157b9eba4092e2f0f54d24a3806409bdde5.tar.xz
kernel-qcow2-linux-6afb5157b9eba4092e2f0f54d24a3806409bdde5.zip
x86, mm: Separate x86_64 vmalloc_sync_all() into separate functions
No behavior change. Move some of vmalloc_sync_all() code into a new function sync_global_pgds() that will be useful for memory hotplug. Signed-off-by: Haicheng Li <haicheng.li@linux.intel.com> LKML-Reference: <4C6E4ECD.1090607@linux.intel.com> Reviewed-by: Wu Fengguang <fengguang.wu@intel.com> Reviewed-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_64.h')
-rw-r--r--arch/x86/include/asm/pgtable_64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h
index 076052cd62be..f96ac9bedf75 100644
--- a/arch/x86/include/asm/pgtable_64.h
+++ b/arch/x86/include/asm/pgtable_64.h
@@ -102,6 +102,8 @@ static inline void native_pgd_clear(pgd_t *pgd)
native_set_pgd(pgd, native_make_pgd(0));
}
+extern void sync_global_pgds(unsigned long start, unsigned long end);
+
/*
* Conversion functions: convert a page and protection to a page entry,
* and a page entry and page directory to the page they refer to.