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 __PERF_CPUTOPO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __PERF_CPUTOPO_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) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) struct cpu_topology {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	u32	  core_sib;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	u32	  die_sib;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	u32	  thread_sib;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	char	**core_siblings;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	char	**die_siblings;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	char	**thread_siblings;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct numa_topology_node {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	char		*cpus;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u32		 node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	u64		 mem_total;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	u64		 mem_free;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct numa_topology {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u32				nr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	struct numa_topology_node	nodes[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) struct cpu_topology *cpu_topology__new(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void cpu_topology__delete(struct cpu_topology *tp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct numa_topology *numa_topology__new(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) void numa_topology__delete(struct numa_topology *tp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif /* __PERF_CPUTOPO_H */