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

Merge pull request #415 from setrofim/master

cpustates: fix idle state assumption on freq transition
This commit is contained in:
marcbonnici 2017-06-20 16:03:36 +01:00 committed by GitHub
commit f1b63b239c

View File

@ -212,6 +212,8 @@ class PowerStateProcessor(object):
self.current_time = event.timestamp self.current_time = event.timestamp
if event.idle_state is None: if event.idle_state is None:
self.cpu_states[event.cpu_id].frequency = event.frequency self.cpu_states[event.cpu_id].frequency = event.frequency
if self.cpu_states[event.cpu_id].idle_state is None:
self.cpu_states[event.cpu_id].idle_state = -1
else: else:
if event.idle_state == -1: if event.idle_state == -1:
self._process_idle_exit(event) self._process_idle_exit(event)