1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

Merge pull request #148 from ep1cman/master

cpustates: Fix for error when trying to use cpustates with hotplugged…
This commit is contained in:
setrofim 2016-05-13 11:35:45 +01:00
commit b2248413b7

View File

@ -153,8 +153,12 @@ class CpuStatesProcessor(ResultProcessor):
cluster_max_freqs = {}
self.max_freq_list = []
for c in unique(device.core_clusters):
cluster_freqs[c] = device.get_cluster_cur_frequency(c)
cluster_max_freqs[c] = device.get_cluster_max_frequency(c)
try:
cluster_freqs[c] = device.get_cluster_cur_frequency(c)
cluster_max_freqs[c] = device.get_cluster_max_frequency(c)
except ValueError:
cluster_freqs[c] = None
cluster_max_freqs[c] = None
for i, c in enumerate(device.core_clusters):
self.max_freq_list.append(cluster_max_freqs[c])
entry = 'CPU {} FREQUENCY: {} kHZ'.format(i, cluster_freqs[c])