From 1c083602635307e59eb190653cee59e688c1f347 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 8 Oct 2020 19:15:19 +0100 Subject: [PATCH] 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. --- wa/framework/target/runtime_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/framework/target/runtime_config.py b/wa/framework/target/runtime_config.py index 7fd7d54b..9575af32 100644 --- a/wa/framework/target/runtime_config.py +++ b/wa/framework/target/runtime_config.py @@ -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