mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 01:59:13 +00:00
LinuxDevice: rename get_number_of_online_cpus arg
Renamed "c" to "core", as that gets passed as a keyword argument inside get_runtime_parameters().
This commit is contained in:
parent
2fd7614d97
commit
0694ab6792
@ -477,8 +477,8 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method
|
||||
else:
|
||||
raise ValueError(c)
|
||||
|
||||
def get_number_of_online_cpus(self, c):
|
||||
return len(self.get_online_cpus(c))
|
||||
def get_number_of_online_cpus(self, core):
|
||||
return len(self.get_online_cpus(core))
|
||||
|
||||
def set_number_of_online_cpus(self, core, number):
|
||||
core_ids = [i for i, c in enumerate(self.core_names) if c == core]
|
||||
|
Loading…
x
Reference in New Issue
Block a user