mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-15 03:23:47 +01: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:
@ -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)
|
||||
|
Reference in New Issue
Block a user