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

powerpc/44x: remove page.h from mmu-44x.h

mmu-44x.h doesn't need asm/page.h if PAGE_SHIFT are replaced by CONFIG_PPC_XX_PAGES

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Christophe Leroy and committed by
Michael Ellerman
7bc39695 0c295d0e

+4 -5
+4 -5
arch/powerpc/include/asm/mmu-44x.h
··· 5 5 * PPC440 support 6 6 */ 7 7 8 - #include <asm/page.h> 9 8 #include <asm/asm-const.h> 10 9 11 10 #define PPC44x_MMUCR_TID 0x000000ff ··· 124 125 /* Size of the TLBs used for pinning in lowmem */ 125 126 #define PPC_PIN_SIZE (1 << 28) /* 256M */ 126 127 127 - #if (PAGE_SHIFT == 12) 128 + #if defined(CONFIG_PPC_4K_PAGES) 128 129 #define PPC44x_TLBE_SIZE PPC44x_TLB_4K 129 130 #define PPC47x_TLBE_SIZE PPC47x_TLB0_4K 130 131 #define mmu_virtual_psize MMU_PAGE_4K 131 - #elif (PAGE_SHIFT == 14) 132 + #elif defined(CONFIG_PPC_16K_PAGES) 132 133 #define PPC44x_TLBE_SIZE PPC44x_TLB_16K 133 134 #define PPC47x_TLBE_SIZE PPC47x_TLB0_16K 134 135 #define mmu_virtual_psize MMU_PAGE_16K 135 - #elif (PAGE_SHIFT == 16) 136 + #elif defined(CONFIG_PPC_64K_PAGES) 136 137 #define PPC44x_TLBE_SIZE PPC44x_TLB_64K 137 138 #define PPC47x_TLBE_SIZE PPC47x_TLB0_64K 138 139 #define mmu_virtual_psize MMU_PAGE_64K 139 - #elif (PAGE_SHIFT == 18) 140 + #elif defined(CONFIG_PPC_256K_PAGES) 140 141 #define PPC44x_TLBE_SIZE PPC44x_TLB_256K 141 142 #define mmu_virtual_psize MMU_PAGE_256K 142 143 #else