summaryrefslogtreecommitdiffstats
path: root/kernel/sched/stop_task.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2017-09-25 08:12:04 -0700
committerTejun Heo <tj@kernel.org>2017-09-25 08:12:04 -0700
commitd2cc5ed6949085cfba30ec5228816cf6eb1d02b9 (patch)
tree52cd7323c6a2068f4ec1b4a08ad8a3ad674f5c81 /kernel/sched/stop_task.c
parentcfb766da54d98ceb145e1bb0bd11c559569dcbfc (diff)
downloadlinux-stable-d2cc5ed6949085cfba30ec5228816cf6eb1d02b9.tar.gz
linux-stable-d2cc5ed6949085cfba30ec5228816cf6eb1d02b9.tar.bz2
linux-stable-d2cc5ed6949085cfba30ec5228816cf6eb1d02b9.zip
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/stop_task.c')
-rw-r--r--kernel/sched/stop_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c
index 9f69fb630853..ec0bb5ab9024 100644
--- a/kernel/sched/stop_task.c
+++ b/kernel/sched/stop_task.c
@@ -71,7 +71,7 @@ static void put_prev_task_stop(struct rq *rq, struct task_struct *prev)
account_group_exec_runtime(curr, delta_exec);
curr->se.exec_start = rq_clock_task(rq);
- cpuacct_charge(curr, delta_exec);
+ cgroup_account_cputime(curr, delta_exec);
}
static void task_tick_stop(struct rq *rq, struct task_struct *curr, int queued)