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 __X86_MM_NUMA_INTERNAL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __X86_MM_NUMA_INTERNAL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <asm/numa.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) struct numa_memblk {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	u64			start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	u64			end;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	int			nid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct numa_meminfo {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	int			nr_blks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	struct numa_memblk	blk[NR_NODE_MEMBLKS];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int __init numa_cleanup_meminfo(struct numa_meminfo *mi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void __init numa_reset_distance(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) void __init x86_numa_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #ifdef CONFIG_NUMA_EMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) void __init numa_emulation(struct numa_meminfo *numa_meminfo,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 			   int numa_dist_cnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) static inline void numa_emulation(struct numa_meminfo *numa_meminfo,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 				  int numa_dist_cnt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif	/* __X86_MM_NUMA_INTERNAL_H */