arm64: topology: Export arch_get_cpu_efficiency API
Export arch_get_cpu_efficiency API since it can be called
by the modules. Update topology header file too.
CRs-Fixed: 1038542
Change-Id: Ie2ab84b02a8fb4070a0e86f09f52db9aa4163003
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
This commit is contained in:
parent
3ab333cd26
commit
f9d0fd115f
2 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ extern struct cpu_topology cpu_topology[NR_CPUS];
|
|||
void init_cpu_topology(void);
|
||||
void store_cpu_topology(unsigned int cpuid);
|
||||
const struct cpumask *cpu_coregroup_mask(int cpu);
|
||||
unsigned long arch_get_cpu_efficiency(int cpu);
|
||||
|
||||
#include <asm-generic/topology.h>
|
||||
|
||||
|
|
|
@ -215,6 +215,7 @@ unsigned long arch_get_cpu_efficiency(int cpu)
|
|||
{
|
||||
return per_cpu(cpu_efficiency, cpu);
|
||||
}
|
||||
EXPORT_SYMBOL(arch_get_cpu_efficiency);
|
||||
|
||||
/*
|
||||
* Iterate all CPUs' descriptor in DT and compute the efficiency
|
||||
|
|
Loading…
Add table
Reference in a new issue