hugetlb.h (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) hugetlb.h (f693d38d9468101587175b1e62d7e4483b51d8f5)
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

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

19
20int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
21 unsigned long len);
22
23static inline int is_hugepage_only_range(struct mm_struct *mm,
24 unsigned long addr,
25 unsigned long len)
26{
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

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

19
20int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
21 unsigned long len);
22
23static inline int is_hugepage_only_range(struct mm_struct *mm,
24 unsigned long addr,
25 unsigned long len)
26{
27 if (IS_ENABLED(CONFIG_PPC_MM_SLICES) && !radix_enabled())
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#define __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
34void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr,
35 unsigned long end, unsigned long floor,

--- 49 unchanged lines hidden ---
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#define __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
34void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr,
35 unsigned long end, unsigned long floor,

--- 49 unchanged lines hidden ---