mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +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):
|
||||
for cpu in self.config:
|
||||
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,
|
||||
config.get('governor'),
|
||||
config.get('governor_tunables'))
|
||||
|
||||
freq = self._resolve_freq(config.get('frequency'), cpu)
|
||||
self.configure_frequency(cpu,
|
||||
freq,
|
||||
config.get('min_frequency'),
|
||||
config.get('max_frequency'),
|
||||
config.get('governor'))
|
||||
self.configure_frequency(cpu, freq, minf, maxf, config.get('governor'))
|
||||
|
||||
def clear(self):
|
||||
self.config = defaultdict(dict)
|
||||
|
Loading…
x
Reference in New Issue
Block a user