Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: make pte_alloc_one_kernel() inline

As it's just a single call to __get_free_page().

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Ivan Kokshaysky and committed by
Linus Torvalds
5da7f3d7 6946ce00

+6 -8
+6 -1
arch/alpha/include/asm/pgalloc.h
··· 50 50 free_page((unsigned long)pmd); 51 51 } 52 52 53 - extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr); 53 + static inline pte_t * 54 + pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) 55 + { 56 + pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); 57 + return pte; 58 + } 54 59 55 60 static inline void 56 61 pte_free_kernel(struct mm_struct *mm, pte_t *pte)
-7
arch/alpha/mm/init.c
··· 59 59 return ret; 60 60 } 61 61 62 - pte_t * 63 - pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) 64 - { 65 - pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); 66 - return pte; 67 - } 68 - 69 62 70 63 /* 71 64 * BAD_PAGE is the page that is used for page faults when linux