aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgalloc.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 19:37:01 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:31 -0400
commit6944a9c8945212a0cc1de3589736d59ec542c539 (patch)
tree3234ea6c8690c9b69d91ab9c9bd3adb0beb4e976 /include/asm-x86/pgalloc.h
parent394158559d4c912cc58c311b6346cdea0ed2b1de (diff)
x86: rename paravirt_alloc_pt etc after the pagetable structure
Rename (alloc|release)_(pt|pd) to pte/pmd to explicitly match the name of the appropriate pagetable level structure. [ x86.git merge work by Mark McLoughlin <markmc@redhat.com> ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgalloc.h')
-rw-r--r--include/asm-x86/pgalloc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-x86/pgalloc.h b/include/asm-x86/pgalloc.h
index 73e5b0318476..a25d54029874 100644
--- a/include/asm-x86/pgalloc.h
+++ b/include/asm-x86/pgalloc.h
@@ -8,11 +8,11 @@
8#ifdef CONFIG_PARAVIRT 8#ifdef CONFIG_PARAVIRT
9#include <asm/paravirt.h> 9#include <asm/paravirt.h>
10#else 10#else
11#define paravirt_alloc_pt(mm, pfn) do { } while (0) 11#define paravirt_alloc_pte(mm, pfn) do { } while (0)
12#define paravirt_alloc_pd(mm, pfn) do { } while (0) 12#define paravirt_alloc_pmd(mm, pfn) do { } while (0)
13#define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0) 13#define paravirt_alloc_pmd_clone(pfn, clonepfn, start, count) do { } while (0)
14#define paravirt_release_pt(pfn) do { } while (0) 14#define paravirt_release_pte(pfn) do { } while (0)
15#define paravirt_release_pd(pfn) do { } while (0) 15#define paravirt_release_pmd(pfn) do { } while (0)
16#endif 16#endif
17 17
18/* 18/*
@@ -43,7 +43,7 @@ extern void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte);
43static inline void pmd_populate_kernel(struct mm_struct *mm, 43static inline void pmd_populate_kernel(struct mm_struct *mm,
44 pmd_t *pmd, pte_t *pte) 44 pmd_t *pmd, pte_t *pte)
45{ 45{
46 paravirt_alloc_pt(mm, __pa(pte) >> PAGE_SHIFT); 46 paravirt_alloc_pte(mm, __pa(pte) >> PAGE_SHIFT);
47 set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE)); 47 set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE));
48} 48}
49 49
@@ -52,7 +52,7 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd,
52{ 52{
53 unsigned long pfn = page_to_pfn(pte); 53 unsigned long pfn = page_to_pfn(pte);
54 54
55 paravirt_alloc_pt(mm, pfn); 55 paravirt_alloc_pte(mm, pfn);
56 set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); 56 set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE));
57} 57}
58 58
@@ -77,7 +77,7 @@ extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd);
77#else /* !CONFIG_X86_PAE */ 77#else /* !CONFIG_X86_PAE */
78static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) 78static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
79{ 79{
80 paravirt_alloc_pd(mm, __pa(pmd) >> PAGE_SHIFT); 80 paravirt_alloc_pmd(mm, __pa(pmd) >> PAGE_SHIFT);
81 set_pud(pud, __pud(_PAGE_TABLE | __pa(pmd))); 81 set_pud(pud, __pud(_PAGE_TABLE | __pa(pmd)));
82} 82}
83#endif /* CONFIG_X86_PAE */ 83#endif /* CONFIG_X86_PAE */