GNU Linux-libre 4.14.265-gnu1
[releases.git] / arch / powerpc / include / asm / nohash / 64 / slice.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_NOHASH_64_SLICE_H
3 #define _ASM_POWERPC_NOHASH_64_SLICE_H
4
5 #ifdef CONFIG_PPC_64K_PAGES
6 #define get_slice_psize(mm, addr)       MMU_PAGE_64K
7 #else /* CONFIG_PPC_64K_PAGES */
8 #define get_slice_psize(mm, addr)       MMU_PAGE_4K
9 #endif /* !CONFIG_PPC_64K_PAGES */
10 #define slice_set_user_psize(mm, psize) do { BUG(); } while (0)
11
12 #endif /* _ASM_POWERPC_NOHASH_64_SLICE_H */