mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
module/sched: Make get_capacities() work with hotplugged CPUs
This commit is contained in:
parent
8bfa050226
commit
d76c2d63fe
@ -423,7 +423,6 @@ class SchedModule(Module):
|
|||||||
int
|
int
|
||||||
)
|
)
|
||||||
|
|
||||||
@memoized
|
|
||||||
def get_capacities(self, default=None):
|
def get_capacities(self, default=None):
|
||||||
"""
|
"""
|
||||||
:param default: Default capacity value to find if no data is
|
: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
|
:raises RuntimeError: Raised when no capacity information is
|
||||||
found and 'default' is None
|
found and 'default' is None
|
||||||
"""
|
"""
|
||||||
cpus = list(range(self.target.number_of_cpus))
|
cpus = self.target.list_online_cpus()
|
||||||
|
|
||||||
capacities = {}
|
capacities = {}
|
||||||
sd_info = self.get_sd_info()
|
sd_info = self.get_sd_info()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user