mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-03 16:57:51 +00:00
module/cpufreq: rename get_domain_cpus
Rename get_domain_cpus to get_related_cpus to match cpufreq nomenclature.
This commit is contained in:
parent
e206e9b24a
commit
63e60401d5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user