Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_IA64_HUGETLB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_IA64_HUGETLB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <asm/page.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 			    unsigned long end, unsigned long floor,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 			    unsigned long ceiling);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define __HAVE_ARCH_PREPARE_HUGEPAGE_RANGE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int prepare_hugepage_range(struct file *file,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 			unsigned long addr, unsigned long len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) static inline int is_hugepage_only_range(struct mm_struct *mm,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 					 unsigned long addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 					 unsigned long len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	return (REGION_NUMBER(addr) == RGN_HPAGE ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		REGION_NUMBER((addr)+(len)-1) == RGN_HPAGE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define is_hugepage_only_range is_hugepage_only_range
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 					 unsigned long addr, pte_t *ptep)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #include <asm-generic/hugetlb.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif /* _ASM_IA64_HUGETLB_H */