mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
uilts/cpustates: Fix inverted no_idle
check
If there is no information about idle states then `no_idle` should be set to `True` instead of `False`.
This commit is contained in:
parent
d7c95fa844
commit
09d6f4dea1
@ -151,7 +151,7 @@ class PowerStateProcessor(object):
|
||||
|
||||
def __init__(self, cpus, wait_for_marker=True, no_idle=None):
|
||||
if no_idle is None:
|
||||
no_idle = True if cpus[0].cpuidle else False
|
||||
no_idle = False if cpus[0].cpuidle else True
|
||||
self.power_state = SystemPowerState(len(cpus), no_idle=no_idle)
|
||||
self.requested_states = {} # cpu_id -> requeseted state
|
||||
self.wait_for_marker = wait_for_marker
|
||||
|
Loading…
x
Reference in New Issue
Block a user