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 a7f3d4a8f535..551acd729562 100644
--- a/kernel/sched/cpuacct.h
+++ b/kernel/sched/cpuacct.h
@@ -41,10 +41,15 @@ static inline struct cpuacct *parent_ca(struct cpuacct *ca)
return cgroup_ca(ca->css.cgroup->parent);
}
+extern void cpuacct_init(void);
extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
#else
+static inline void cpuacct_init(void)
+{
+}
+
static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime)
{
}
OpenPOWER on IntegriCloud