1
0
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:
Valentin Schneider 2019-03-18 14:48:07 +00:00 committed by Marc Bonnici
parent 8871fe3c25
commit 8bfa050226

View File

@ -228,7 +228,7 @@ class SchedProcFSData(SchedProcFSNode):
# Even if we have a CPU entry, it can be empty (e.g. hotplugged out)
# Make sure some data is there
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 False