1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

module/sched: Make get_capacities() work with hotplugged CPUs

This commit is contained in:
Valentin Schneider 2019-03-18 16:20:16 +00:00 committed by Marc Bonnici
parent 8bfa050226
commit d76c2d63fe

View File

@ -423,7 +423,6 @@ class SchedModule(Module):
int
)
@memoized
def get_capacities(self, default=None):
"""
:param default: Default capacity value to find if no data is
@ -434,7 +433,7 @@ class SchedModule(Module):
:raises RuntimeError: Raised when no capacity information is
found and 'default' is None
"""
cpus = list(range(self.target.number_of_cpus))
cpus = self.target.list_online_cpus()
capacities = {}
sd_info = self.get_sd_info()