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) // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #ifndef __ASM_CSKY_TLB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #define __ASM_CSKY_TLB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <asm/cacheflush.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define tlb_start_vma(tlb, vma) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	do { \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 		if (!(tlb)->fullmm) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 			flush_cache_range(vma, (vma)->vm_start, (vma)->vm_end); \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	}  while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define tlb_end_vma(tlb, vma) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	do { \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 		if (!(tlb)->fullmm) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 			flush_tlb_range(vma, (vma)->vm_start, (vma)->vm_end); \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	}  while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #include <asm-generic/tlb.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif /* __ASM_CSKY_TLB_H */