In preparation for the following patch which will enhance 'slices' for supporting PPC32 in order to fix an issue on hugepages on 8xx, this patch takes out of page*.h all bits related to 'slices' and put them into newly created slice.h header files. While common parts go into asm/slice.h, subarch specific parts go into respective books3s/64/slice.c and nohash/64/slice.c 'slices' Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
13 lines
416 B
C
13 lines
416 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_NOHASH_64_SLICE_H
|
|
#define _ASM_POWERPC_NOHASH_64_SLICE_H
|
|
|
|
#ifdef CONFIG_PPC_64K_PAGES
|
|
#define get_slice_psize(mm, addr) MMU_PAGE_64K
|
|
#else /* CONFIG_PPC_64K_PAGES */
|
|
#define get_slice_psize(mm, addr) MMU_PAGE_4K
|
|
#endif /* !CONFIG_PPC_64K_PAGES */
|
|
#define slice_set_user_psize(mm, psize) do { BUG(); } while (0)
|
|
|
|
#endif /* _ASM_POWERPC_NOHASH_64_SLICE_H */
|