Commit 5da7f3d7 authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Linus Torvalds

alpha: make pte_alloc_one_kernel() inline

As it's just a single call to __get_free_page().
Signed-off-by: default avatarIvan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6946ce00
...@@ -50,7 +50,12 @@ pmd_free(struct mm_struct *mm, pmd_t *pmd) ...@@ -50,7 +50,12 @@ pmd_free(struct mm_struct *mm, pmd_t *pmd)
free_page((unsigned long)pmd); free_page((unsigned long)pmd);
} }
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr); static inline pte_t *
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
return pte;
}
static inline void static inline void
pte_free_kernel(struct mm_struct *mm, pte_t *pte) pte_free_kernel(struct mm_struct *mm, pte_t *pte)
......
...@@ -59,13 +59,6 @@ pgd_alloc(struct mm_struct *mm) ...@@ -59,13 +59,6 @@ pgd_alloc(struct mm_struct *mm)
return ret; return ret;
} }
pte_t *
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
return pte;
}
/* /*
* BAD_PAGE is the page that is used for page faults when linux * BAD_PAGE is the page that is used for page faults when linux
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment