hugetlb.h (57fb15c32f4f6a4f1a58f1fbc58a799c3f975ed8) hugetlb.h (0c22e4b2949b83ccaf530603d68239cb5b0fd512)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_HUGETLB_H
3#define _ASM_POWERPC_HUGETLB_H
4
5#ifdef CONFIG_HUGETLB_PAGE
6#include <asm/page.h>
7
8#ifdef CONFIG_PPC_BOOK3S_64

--- 16 unchanged lines hidden (view full) ---

25 unsigned long len)
26{
27 if (IS_ENABLED(CONFIG_PPC_64S_HASH_MMU) && !radix_enabled())
28 return slice_is_hugepage_only_range(mm, addr, len);
29 return 0;
30}
31#define is_hugepage_only_range is_hugepage_only_range
32
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_HUGETLB_H
3#define _ASM_POWERPC_HUGETLB_H
4
5#ifdef CONFIG_HUGETLB_PAGE
6#include <asm/page.h>
7
8#ifdef CONFIG_PPC_BOOK3S_64

--- 16 unchanged lines hidden (view full) ---

25 unsigned long len)
26{
27 if (IS_ENABLED(CONFIG_PPC_64S_HASH_MMU) && !radix_enabled())
28 return slice_is_hugepage_only_range(mm, addr, len);
29 return 0;
30}
31#define is_hugepage_only_range is_hugepage_only_range
32
33#ifdef CONFIG_ARCH_HAS_HUGEPD
34#define __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
35void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr,
36 unsigned long end, unsigned long floor,
37 unsigned long ceiling);
38#endif
39
40#define __HAVE_ARCH_HUGE_SET_HUGE_PTE_AT
41void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
42 pte_t pte, unsigned long sz);
43
44#define __HAVE_ARCH_HUGE_PTEP_GET_AND_CLEAR
45static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
46 unsigned long addr, pte_t *ptep)
47{

--- 38 unchanged lines hidden ---
33#define __HAVE_ARCH_HUGE_SET_HUGE_PTE_AT
34void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
35 pte_t pte, unsigned long sz);
36
37#define __HAVE_ARCH_HUGE_PTEP_GET_AND_CLEAR
38static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm,
39 unsigned long addr, pte_t *ptep)
40{

--- 38 unchanged lines hidden ---