mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
fw/rt_config: Avoid querying online cpus if hotplug disabled
If the device does not have the hoptplug module installed, avoid unnecessary querying of the device to check the number of cpus which can cause issues with some devices.
This commit is contained in:
@@ -178,7 +178,7 @@ class HotplugRuntimeConfig(RuntimeConfig):
|
|||||||
raise TargetError('Target does not appear to support hotplug')
|
raise TargetError('Target does not appear to support hotplug')
|
||||||
|
|
||||||
def validate_parameters(self):
|
def validate_parameters(self):
|
||||||
if len(self.num_cores) == self.target.number_of_cpus:
|
if self.num_cores and len(self.num_cores) == self.target.number_of_cpus:
|
||||||
if all(v is False for v in list(self.num_cores.values())):
|
if all(v is False for v in list(self.num_cores.values())):
|
||||||
raise ValueError('Cannot set number of all cores to 0')
|
raise ValueError('Cannot set number of all cores to 0')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user