From 776a4d850bd1aeaa97a751806fc09a9ebb4e5de2 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 18 Jan 2018 15:28:51 +0000 Subject: [PATCH] framework/rt_config: Remove over cautious error checking. Previously when validating cpufreq runtime parameters it would check too early whether the cpu was online, not allowing for the fact that the cpu might be being onlined before the parameter was committed to the device. --- wa/framework/target/runtime_config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wa/framework/target/runtime_config.py b/wa/framework/target/runtime_config.py index 510469a0..469503bd 100644 --- a/wa/framework/target/runtime_config.py +++ b/wa/framework/target/runtime_config.py @@ -516,10 +516,6 @@ class CpufreqRuntimeConfig(RuntimeConfig): def validate_parameters(self): '''Method to validate parameters against each other''' for cpu in self.config: - if cpu not in self.target.list_online_cpus(): - msg = 'Cannot configure frequencies for {} as no CPUs are online.' - raise TargetError(msg.format(cpu)) - config = self.config[cpu] minf = config.get('min_frequency') maxf = config.get('max_frequency')