1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 12:24:32 +00:00

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.
This commit is contained in:
Marc Bonnici 2018-01-18 15:28:51 +00:00 committed by setrofim
parent 3cf789e352
commit 776a4d850b

View File

@ -516,10 +516,6 @@ class CpufreqRuntimeConfig(RuntimeConfig):
def validate_parameters(self): def validate_parameters(self):
'''Method to validate parameters against each other''' '''Method to validate parameters against each other'''
for cpu in self.config: 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] config = self.config[cpu]
minf = config.get('min_frequency') minf = config.get('min_frequency')
maxf = config.get('max_frequency') maxf = config.get('max_frequency')