From 8bfa05022607e038b0a1c3face6c4b55aa61d310 Mon Sep 17 00:00:00 2001 From: Valentin Schneider Date: Mon, 18 Mar 2019 14:48:07 +0000 Subject: [PATCH] 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. --- devlib/module/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/module/sched.py b/devlib/module/sched.py index 0f35fc1..3092450 100644 --- a/devlib/module/sched.py +++ b/devlib/module/sched.py @@ -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