1 From a2360b8ebb8b2b0d55f8aea3fdce51bce9b57b10 Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Thu, 15 May 2008 15:48:59 -0600
4 Subject: [PATCH] Add mm arg to pte/pmd/pud/pgd_free and add pmd_pgtable macro.
6 Add mm argument to pte/pmd/pud/pgd_free as per commit
7 5e5419734c8719cbc01af959ad9c0844002c0df5.
9 LTIBName: mcfv4e-add-mm-args
10 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
12 include/asm-m68k/cf_pgalloc.h | 10 ++++++----
13 1 files changed, 6 insertions(+), 4 deletions(-)
15 --- a/include/asm-m68k/cf_pgalloc.h
16 +++ b/include/asm-m68k/cf_pgalloc.h
18 #include <asm/cf_tlbflush.h>
19 #include <asm/cf_cacheflush.h>
21 -extern inline void pte_free_kernel(pte_t *pte)
22 +extern inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
24 free_page((unsigned long) pte);
26 @@ -40,6 +40,8 @@ extern inline pmd_t *pmd_alloc_kernel(pg
28 #define pmd_populate_kernel(mm, pmd, pte) (pmd_val(*pmd) = (unsigned long)(pte))
30 +#define pmd_pgtable(pmd) pmd_page(pmd)
32 static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *page)
35 @@ -68,7 +70,7 @@ static inline struct page *pte_alloc_one
39 -extern inline void pte_free(struct page *page)
40 +extern inline void pte_free(struct mm_struct *mm, struct page *page)
44 @@ -77,9 +79,9 @@ extern inline void pte_free(struct page
45 * In our implementation, each pgd entry contains 1 pmd that is never allocated
46 * or freed. pgd_present is always 1, so this should never be called. -NL
48 -#define pmd_free(pmd) BUG()
49 +#define pmd_free(mm, pmd) BUG()
51 -extern inline void pgd_free(pgd_t *pgd)
52 +extern inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
54 free_page((unsigned long) pgd);