From 09d6f4dea1431c6c11fbb3ad88423b9957622ca7 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 3 Oct 2019 16:43:05 +0100 Subject: [PATCH] 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`. --- wa/utils/cpustates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/utils/cpustates.py b/wa/utils/cpustates.py index e1275420..632b7e9f 100755 --- a/wa/utils/cpustates.py +++ b/wa/utils/cpustates.py @@ -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