Linux 6.13-rc4
[linux.git] / arch / sh / include / asm / hugetlb.h
blob4a92e6e4d627e99f75e78f3b44fb6bd0c58d6a37
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SH_HUGETLB_H
3 #define _ASM_SH_HUGETLB_H
5 #include <asm/cacheflush.h>
6 #include <asm/page.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)
12 return *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 */