mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +00:00
energy_model: fixing idle state handling to encompass all active cores on a cluster.
This commit is contained in:
parent
9b7b57a4d4
commit
25b9350fea
@ -663,9 +663,8 @@ class EnergyModelInstrument(Instrument):
|
|||||||
self.little_cpus = self.device.get_online_cpus(self.little_core)
|
self.little_cpus = self.device.get_online_cpus(self.little_core)
|
||||||
|
|
||||||
def enable_all_idle_states(self):
|
def enable_all_idle_states(self):
|
||||||
for state in self.big_idle_states:
|
for cpu in self.device.online_cpus:
|
||||||
state.disable = 0
|
for state in self.device.get_cpuidle_states(cpu):
|
||||||
for state in self.little_idle_states:
|
|
||||||
state.disable = 0
|
state.disable = 0
|
||||||
|
|
||||||
def reset_cgroups(self):
|
def reset_cgroups(self):
|
||||||
@ -777,9 +776,13 @@ class EnergyModelInstrument(Instrument):
|
|||||||
|
|
||||||
def get_device_idle_states(self, cluster):
|
def get_device_idle_states(self, cluster):
|
||||||
if cluster == 'big':
|
if cluster == 'big':
|
||||||
return self.big_idle_states
|
online_cpus = self.device.get_online_cpus(self.big_core)
|
||||||
else:
|
else:
|
||||||
return self.little_idle_states
|
online_cpus = self.device.get_online_cpus(self.little_core)
|
||||||
|
idle_states = []
|
||||||
|
for cpu in online_cpus:
|
||||||
|
idle_states.extend(self.device.get_cpuidle_states(cpu))
|
||||||
|
return idle_states
|
||||||
|
|
||||||
def get_core_name(self, cluster):
|
def get_core_name(self, cluster):
|
||||||
if cluster == 'big':
|
if cluster == 'big':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user