mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
module/sched: SchedProcFSData: Don't assume SD name is always present
The existence of that field is gated by SCHED_DEBUG, so look for an always-present field instead.
This commit is contained in:
parent
8871fe3c25
commit
8bfa050226
@ -228,7 +228,7 @@ class SchedProcFSData(SchedProcFSNode):
|
|||||||
# Even if we have a CPU entry, it can be empty (e.g. hotplugged out)
|
# Even if we have a CPU entry, it can be empty (e.g. hotplugged out)
|
||||||
# Make sure some data is there
|
# Make sure some data is there
|
||||||
for cpu in cpus:
|
for cpu in cpus:
|
||||||
if target.file_exists(target.path.join(path, cpu, "domain0", "name")):
|
if target.file_exists(target.path.join(path, cpu, "domain0", "flags")):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user