mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
powerpc/mm: no slice for nohash/64
Only nohash/32 and book3s/64 support mm slices. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
5ba666d56c
commit
02f89aed6b
3 changed files with 5 additions and 15 deletions
|
@ -1,12 +0,0 @@
|
||||||
/* 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 */
|
|
|
@ -4,9 +4,7 @@
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_BOOK3S_64
|
#ifdef CONFIG_PPC_BOOK3S_64
|
||||||
#include <asm/book3s/64/slice.h>
|
#include <asm/book3s/64/slice.h>
|
||||||
#elif defined(CONFIG_PPC64)
|
#elif defined(CONFIG_PPC_MMU_NOHASH_32)
|
||||||
#include <asm/nohash/64/slice.h>
|
|
||||||
#elif defined(CONFIG_PPC_MMU_NOHASH)
|
|
||||||
#include <asm/nohash/32/slice.h>
|
#include <asm/nohash/32/slice.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -391,6 +391,10 @@ config PPC_MMU_NOHASH
|
||||||
def_bool y
|
def_bool y
|
||||||
depends on !PPC_BOOK3S
|
depends on !PPC_BOOK3S
|
||||||
|
|
||||||
|
config PPC_MMU_NOHASH_32
|
||||||
|
def_bool y
|
||||||
|
depends on PPC_MMU_NOHASH && PPC32
|
||||||
|
|
||||||
config PPC_BOOK3E_MMU
|
config PPC_BOOK3E_MMU
|
||||||
def_bool y
|
def_bool y
|
||||||
depends on FSL_BOOKE || PPC_BOOK3E
|
depends on FSL_BOOKE || PPC_BOOK3E
|
||||||
|
|
Loading…
Reference in a new issue