mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 00:52:08 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user