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>
Showing
- include/linux/cgroup.h 38 additions, 0 deletionsinclude/linux/cgroup.h
- kernel/sched/cpuacct.h 0 additions, 17 deletionskernel/sched/cpuacct.h
- kernel/sched/cputime.c 1 addition, 1 deletionkernel/sched/cputime.c
- kernel/sched/deadline.c 1 addition, 1 deletionkernel/sched/deadline.c
- kernel/sched/fair.c 1 addition, 1 deletionkernel/sched/fair.c
- kernel/sched/rt.c 1 addition, 1 deletionkernel/sched/rt.c
- kernel/sched/sched.h 1 addition, 1 deletionkernel/sched/sched.h
- kernel/sched/stop_task.c 1 addition, 1 deletionkernel/sched/stop_task.c
Please register or sign in to comment