mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 09:16:24 +07:00
54be0b9c7c
This reverts commits:5e46e29e6a
("powerpc/64s/hash: convert SLB miss handlers to C")8fed04d0f6
("powerpc/64s/hash: remove user SLB data from the paca")655deecf67
("powerpc/64s/hash: SLB allocation status bitmaps")2e1626744e
("powerpc/64s/hash: provide arch_setup_exec hooks for hash slice setup")89ca4e126a
("powerpc/64s/hash: Add a SLB preload cache") This series had a few bugs, and the fixes are not all trivial. So revert most of it for now. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
41 lines
1011 B
C
41 lines
1011 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_SLICE_H
|
|
#define _ASM_POWERPC_SLICE_H
|
|
|
|
#ifdef CONFIG_PPC_BOOK3S_64
|
|
#include <asm/book3s/64/slice.h>
|
|
#elif defined(CONFIG_PPC64)
|
|
#include <asm/nohash/64/slice.h>
|
|
#elif defined(CONFIG_PPC_MMU_NOHASH)
|
|
#include <asm/nohash/32/slice.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_PPC_MM_SLICES
|
|
|
|
#ifdef CONFIG_HUGETLB_PAGE
|
|
#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
|
|
#endif
|
|
#define HAVE_ARCH_UNMAPPED_AREA
|
|
#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct mm_struct;
|
|
|
|
unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
|
|
unsigned long flags, unsigned int psize,
|
|
int topdown);
|
|
|
|
unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr);
|
|
|
|
void slice_set_range_psize(struct mm_struct *mm, unsigned long start,
|
|
unsigned long len, unsigned int psize);
|
|
|
|
void slice_init_new_context_exec(struct mm_struct *mm);
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* CONFIG_PPC_MM_SLICES */
|
|
|
|
#endif /* _ASM_POWERPC_SLICE_H */
|