diff options
author | Tejun Heo <tj@kernel.org> | 2017-09-25 17:12:04 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-09-25 17:12:04 +0200 |
commit | d2cc5ed6949085cfba30ec5228816cf6eb1d02b9 (patch) | |
tree | 52cd7323c6a2068f4ec1b4a08ad8a3ad674f5c81 /kernel/sched/rt.c | |
parent | sched/cputime: Expose cputime_adjust() (diff) | |
download | linux-d2cc5ed6949085cfba30ec5228816cf6eb1d02b9.tar.xz linux-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/rt.c')
-rw-r--r-- | kernel/sched/rt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 0af5ca9e3e3f..fdc2c5d1f82e 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -979,7 +979,7 @@ static void update_curr_rt(struct rq *rq) 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); sched_rt_avg_update(rq, delta_exec); |