mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
8eab879c54
Hook up topology_get_thermal_pressure to arch_scale_thermal_pressure thus enabling scheduler to retrieve instantaneous thermal pressure of a CPU. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20200222005213.3873-6-thara.gopinath@linaro.org
32 lines
864 B
C
32 lines
864 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_ARM_TOPOLOGY_H
|
|
#define _ASM_ARM_TOPOLOGY_H
|
|
|
|
#ifdef CONFIG_ARM_CPU_TOPOLOGY
|
|
|
|
#include <linux/cpumask.h>
|
|
#include <linux/arch_topology.h>
|
|
|
|
/* Replace task scheduler's default frequency-invariant accounting */
|
|
#define arch_scale_freq_capacity topology_get_freq_scale
|
|
|
|
/* Replace task scheduler's default cpu-invariant accounting */
|
|
#define arch_scale_cpu_capacity topology_get_cpu_scale
|
|
|
|
/* Enable topology flag updates */
|
|
#define arch_update_cpu_topology topology_update_cpu_topology
|
|
|
|
/* Replace task scheduler's default thermal pressure retrieve API */
|
|
#define arch_scale_thermal_pressure topology_get_thermal_pressure
|
|
|
|
#else
|
|
|
|
static inline void init_cpu_topology(void) { }
|
|
static inline void store_cpu_topology(unsigned int cpuid) { }
|
|
|
|
#endif
|
|
|
|
#include <asm-generic/topology.h>
|
|
|
|
#endif /* _ASM_ARM_TOPOLOGY_H */
|