1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _ASM_SH_HUGETLB_H 3 #define _ASM_SH_HUGETLB_H 4 5 #include <asm/cacheflush.h> 6 #include <asm/page.h> 7 8 /* 9 * If the arch doesn't supply something else, 10 * size aligned regions are ok without further 11 */ 12 #define __HAVE_ARCH_PREPARE_HUGEPAGE_RANGE 13 static inline int prepare_hugepage_range(struc 14 unsigned long addr, un 15 { 16 if (len & ~HPAGE_MASK) 17 return -EINVAL; 18 if (addr & ~HPAGE_MASK) 19 return -EINVAL; 20 return 0; 21 } 22 23 #define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH 24 static inline pte_t huge_ptep_clear_flush(stru 25 unsi 26 { 27 return *ptep; 28 } 29 30 static inline void arch_clear_hugetlb_flags(st 31 { 32 clear_bit(PG_dcache_clean, &folio->fla 33 } 34 #define arch_clear_hugetlb_flags arch_clear_hu 35 36 #include <asm-generic/hugetlb.h> 37 38 #endif /* _ASM_SH_HUGETLB_H */ 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.