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

energy_model: idle state fix

This commit is contained in:
Sergei Trofimov 2015-09-01 16:19:53 +01:00
parent 1b6b0907f9
commit a80780b9ed

View File

@ -475,7 +475,7 @@ class EnergyModelInstrument(Instrument):
if not context.spec.label.startswith('idle_'):
return
for idle_state in self.get_device_idle_states(self.measured_cluster):
if idle_state.id > context.spec.idle_state_index:
if idle_state.index > context.spec.idle_state_index:
idle_state.disable = 1
else:
idle_state.disable = 0