summaryrefslogtreecommitdiffstats
path: root/kernel/sched/cpuacct.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/cpuacct.h')
-rw-r--r--kernel/sched/cpuacct.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/cpuacct.h b/kernel/sched/cpuacct.h
index 45c1682..b2f79ad1 100644
--- a/kernel/sched/cpuacct.h
+++ b/kernel/sched/cpuacct.h
@@ -34,6 +34,11 @@ static inline struct cpuacct *task_ca(struct task_struct *tsk)
struct cpuacct, css);
}
+static inline struct cpuacct *__parent_ca(struct cpuacct *ca)
+{
+ return cgroup_ca(ca->css.cgroup->parent);
+}
+
static inline struct cpuacct *parent_ca(struct cpuacct *ca)
{
if (!ca->css.cgroup->parent)
OpenPOWER on IntegriCloud