mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Merge pull request #415 from setrofim/master
cpustates: fix idle state assumption on freq transition
This commit is contained in:
commit
f1b63b239c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user