1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

cpufreq: rename get_domain_cpus

get_domain_cpus() got renamed to get_related_cpus() in devlib to reflect
the cpufreq nomenclature. This commit makes corresponding changes in WA.
This commit is contained in:
Sergei Trofimov 2017-07-26 14:39:28 +01:00
parent 531dcfbb1b
commit 5e0ff6aa51
2 changed files with 2 additions and 2 deletions

View File

@ -622,7 +622,7 @@ class CpufreqRuntimeConfig(RuntimeConfig):
can still be populated.
'''
for cluster_cpu in resolve_unique_domain_cpus('all', self.target):
domain_cpus = self.target.cpufreq.get_domain_cpus(cluster_cpu)
domain_cpus = self.target.cpufreq.get_related_cpus(cluster_cpu)
for cpu in domain_cpus:
if cpu in self.target.list_online_cpus():
supported_cpu_freqs = self.target.cpufreq.list_frequencies(cpu)

View File

@ -668,7 +668,7 @@ def resolve_unique_domain_cpus(name, target):
domain_cpus = []
for cpu in cpus:
if cpu not in domain_cpus:
domain_cpus = target.cpufreq.get_domain_cpus(cpu)
domain_cpus = target.cpufreq.get_related_cpus(cpu)
if domain_cpus[0] not in unique_cpus:
unique_cpus.append(domain_cpus[0])
return unique_cpus