mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01: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:
@@ -477,8 +477,8 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method
|
|||||||
else:
|
else:
|
||||||
raise ValueError(c)
|
raise ValueError(c)
|
||||||
|
|
||||||
def get_number_of_online_cpus(self, c):
|
def get_number_of_online_cpus(self, core):
|
||||||
return len(self.get_online_cpus(c))
|
return len(self.get_online_cpus(core))
|
||||||
|
|
||||||
def set_number_of_online_cpus(self, core, number):
|
def set_number_of_online_cpus(self, core, number):
|
||||||
core_ids = [i for i, c in enumerate(self.core_names) if c == core]
|
core_ids = [i for i, c in enumerate(self.core_names) if c == core]
|
||||||
|
Reference in New Issue
Block a user