mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Revert "cpustates: fix idle state assumption on freq transition"
This reverts commit 9bd745b347ef1a18a8b46a07cf5fa6dd3af642f8. When a frequency is changed on a core, cpufreq reports a frequency transition for all cores in the frequency domain. This means it is not safe to assume a core is not idling just because there is a frequency transition reported for it (that just means that there is at least one core on that frequency domain that is not idling). Moreover, the transitions are always reported in the same order so there is no way to infer which core triggered it.
This commit is contained in:
parent
b6b1b259dc
commit
4f09c3118a
@ -212,8 +212,6 @@ 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