1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SH_HUGETLB_H
3 #define _ASM_SH_HUGETLB_H
5 #include <asm/cacheflush.h>
8 #define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH
9 static inline pte_t
huge_ptep_clear_flush(struct vm_area_struct
*vma
,
10 unsigned long addr
, pte_t
*ptep
)
15 static inline void arch_clear_hugetlb_flags(struct folio
*folio
)
17 clear_bit(PG_dcache_clean
, &folio
->flags
);
19 #define arch_clear_hugetlb_flags arch_clear_hugetlb_flags
21 #include <asm-generic/hugetlb.h>
23 #endif /* _ASM_SH_HUGETLB_H */