mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-07 13:41:24 +00:00
fw/rt_config: Allow for auto determine 'max' and 'min' for other freqs
Allow users to specify 'max' and 'min' for the maximum and minimum frequencies to be set for a cpu as well as the current frequency.
This commit is contained in:
parent
e1518e8c5d
commit
9035c654bd
@ -538,16 +538,14 @@ class CpufreqRuntimeConfig(RuntimeConfig):
|
|||||||
def commit(self):
|
def commit(self):
|
||||||
for cpu in self.config:
|
for cpu in self.config:
|
||||||
config = self.config[cpu]
|
config = self.config[cpu]
|
||||||
|
freq = self._resolve_freq(config.get('frequency'), cpu)
|
||||||
|
minf = self._resolve_freq(config.get('min_frequency'), cpu)
|
||||||
|
maxf = self._resolve_freq(config.get('max_frequency'), cpu)
|
||||||
|
|
||||||
self.configure_governor(cpu,
|
self.configure_governor(cpu,
|
||||||
config.get('governor'),
|
config.get('governor'),
|
||||||
config.get('governor_tunables'))
|
config.get('governor_tunables'))
|
||||||
|
self.configure_frequency(cpu, freq, minf, maxf, config.get('governor'))
|
||||||
freq = self._resolve_freq(config.get('frequency'), cpu)
|
|
||||||
self.configure_frequency(cpu,
|
|
||||||
freq,
|
|
||||||
config.get('min_frequency'),
|
|
||||||
config.get('max_frequency'),
|
|
||||||
config.get('governor'))
|
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.config = defaultdict(dict)
|
self.config = defaultdict(dict)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user