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