1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

module/cpufreq: rename get_domain_cpus

Rename get_domain_cpus to get_related_cpus to match cpufreq nomenclature.
This commit is contained in:
Sergei Trofimov 2017-07-26 14:21:55 +01:00
parent e206e9b24a
commit 63e60401d5

View File

@ -424,7 +424,7 @@ class CpufreqModule(Module):
return [int(c) for c in self.target.read_value(sysfile).split()]
@memoized
def get_domain_cpus(self, cpu):
def get_related_cpus(self, cpu):
"""
Get the CPUs that share a frequency domain with the given CPU
"""
@ -442,6 +442,6 @@ class CpufreqModule(Module):
cpus = set(range(self.target.number_of_cpus))
while cpus:
cpu = iter(cpus).next()
domain = self.target.cpufreq.get_domain_cpus(cpu)
domain = self.target.cpufreq.get_related_cpus(cpu)
yield domain
cpus = cpus.difference(domain)