mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
utils/cpustates: update idle state naming
If idle state names for a cpu could not be discovered, use "idle[N]" where N is the state number, instead of just making them all as "unknown".
This commit is contained in:
parent
fd8a7e442c
commit
05857ec2bc
@ -368,8 +368,10 @@ class PowerStateTimeline(object):
|
||||
if frequency is None:
|
||||
if idle_state == -1:
|
||||
row.append('Running (unknown kHz)')
|
||||
elif idle_state is None or not self.idle_state_names[cpu_idx]:
|
||||
elif idle_state is None:
|
||||
row.append('unknown')
|
||||
elif not self.idle_state_names[cpu_idx]:
|
||||
row.append('idle[{}]'.format(idle_state))
|
||||
else:
|
||||
row.append(self.idle_state_names[cpu_idx][idle_state])
|
||||
else: # frequency is not None
|
||||
|
Loading…
x
Reference in New Issue
Block a user