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_TOPOLOGY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __ASM_TOPOLOGY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/cpumask.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifdef CONFIG_NUMA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) struct pci_bus;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) int pcibus_to_node(struct pci_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ?		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 				 cpu_all_mask :				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 				 cpumask_of_node(pcibus_to_node(bus)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif /* CONFIG_NUMA */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <linux/arch_topology.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #ifdef CONFIG_ARM64_AMU_EXTN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * Replace task scheduler's default counter-based
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * frequency-invariance scale factor setting.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void topology_scale_freq_tick(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define arch_scale_freq_tick topology_scale_freq_tick
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* CONFIG_ARM64_AMU_EXTN */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /* Replace task scheduler's default frequency-invariant accounting */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define arch_set_freq_scale topology_set_freq_scale
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define arch_scale_freq_capacity topology_get_freq_scale
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define arch_scale_freq_invariant topology_scale_freq_invariant
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /* Replace task scheduler's default cpu-invariant accounting */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define arch_scale_cpu_capacity topology_get_cpu_scale
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) /* Enable topology flag updates */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define arch_update_cpu_topology topology_update_cpu_topology
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /* Replace task scheduler's default thermal pressure API */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define arch_scale_thermal_pressure topology_get_thermal_pressure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define arch_set_thermal_pressure   topology_set_thermal_pressure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #include <asm-generic/topology.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #endif /* _ASM_ARM_TOPOLOGY_H */