diff options
author | Tejun Heo <tj@kernel.org> | 2017-09-25 08:12:04 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-09-25 08:12:04 -0700 |
commit | d2cc5ed6949085cfba30ec5228816cf6eb1d02b9 (patch) | |
tree | 52cd7323c6a2068f4ec1b4a08ad8a3ad674f5c81 /kernel/sched/fair.c | |
parent | cfb766da54d98ceb145e1bb0bd11c559569dcbfc (diff) |
cpuacct: Introduce cgroup_account_cputime[_field]()
Introduce cgroup_account_cputime[_field]() which wrap cpuacct_charge()
and cgroup_account_field(). This doesn't introduce any functional
changes and will be used to add cgroup basic resource accounting.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 70ba32e08a23..0ae69af95b8b 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -851,7 +851,7 @@ static void update_curr(struct cfs_rq *cfs_rq) struct task_struct *curtask = task_of(curr); trace_sched_stat_runtime(curtask, delta_exec, curr->vruntime); - cpuacct_charge(curtask, delta_exec); + cgroup_account_cputime(curtask, delta_exec); account_group_exec_runtime(curtask, delta_exec); } |