mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-13 02:23:38 +01:00
Framework/RuntimeConfig: Fix crash if no idle states available.
This commit is contained in:
@ -811,7 +811,7 @@ class CpuidleRuntimeConfig(RuntimeConfig):
|
||||
'''Find common values for cpu idle states across all cores'''
|
||||
common_idle_states = []
|
||||
for cpu in range(self.target.number_of_cpus):
|
||||
for state in self.supported_idle_states.get(cpu):
|
||||
for state in self.supported_idle_states.get(cpu) or []:
|
||||
if state.name not in common_idle_states:
|
||||
common_idle_states.append(state)
|
||||
return common_idle_states
|
||||
|
Reference in New Issue
Block a user