mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
module/cpufreq: Make use_governor() affect only online CPUs
Turns out you can't change cpufreq attributes on an offlined CPU (no big surprise!), so use_governor() will fail if a whole frequency domain has been hotplugged out. Change the default behaviour to only target online CPUs.
This commit is contained in:
parent
d9d187471f
commit
e1fb6cf911
@ -111,7 +111,7 @@ class CpufreqModule(Module):
|
||||
:Keyword Arguments: Governor tunables, See :meth:`set_governor_tunables`
|
||||
"""
|
||||
if not cpus:
|
||||
cpus = range(self.target.number_of_cpus)
|
||||
cpus = self.target.list_online_cpus()
|
||||
|
||||
# Setting a governor & tunables for a cpu will set them for all cpus
|
||||
# in the same clock domain, so only manipulating one cpu per domain
|
||||
|
Loading…
x
Reference in New Issue
Block a user