1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

device: set core_clusters from core_names if not explicitly specified

if core_names are specified in the device config but core_clusters are
not, assume that all cores with the same name are on the same cluster.
This commit is contained in:
Sergei Trofimov
2015-06-16 12:21:44 +01:00
parent 15e854b8f1
commit 53de517488
2 changed files with 15 additions and 3 deletions

View File

@@ -175,8 +175,6 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method
self._abi = None
def validate(self):
if len(self.core_names) != len(self.core_clusters):
raise ConfigError('core_names and core_clusters are of different lengths.')
if self.iks_switch_frequency is not None and self.scheduler != 'iks': # pylint: disable=E0203
raise ConfigError('iks_switch_frequency must NOT be set for non-IKS devices.')
if self.iks_switch_frequency is None and self.scheduler == 'iks': # pylint: disable=E0203