mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
cpustates: fix idle state assumption on freq transition
If a frequency transition is observed before an idle state can be established, assume idle state is -1 (i.e. the core is running). This will ensure correct stats for platforms with disabled cpuidle.
This commit is contained in:
parent
51db53d979
commit
9bd745b347
@ -212,6 +212,8 @@ class PowerStateProcessor(object):
|
||||
self.current_time = event.timestamp
|
||||
if event.idle_state is None:
|
||||
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:
|
||||
if event.idle_state == -1:
|
||||
self._process_idle_exit(event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user