mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
fw/runtime_config: Fix case where no available gov for cpu
Ensure there is a default iterable value in the case there is no governor entry for a particular cpu.
This commit is contained in:
parent
ff220dfb44
commit
1c08360263
@ -694,7 +694,7 @@ class CpufreqRuntimeConfig(RuntimeConfig):
|
||||
else:
|
||||
common_freqs = common_freqs.intersection(self.supported_cpu_freqs.get(cpu) or set())
|
||||
all_freqs = all_freqs.union(self.supported_cpu_freqs.get(cpu) or set())
|
||||
common_gov = common_gov.intersection(self.supported_cpu_governors.get(cpu))
|
||||
common_gov = common_gov.intersection(self.supported_cpu_governors.get(cpu) or set())
|
||||
|
||||
return all_freqs, common_freqs, common_gov
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user