diff options
author | Tejun Heo <tj@kernel.org> | 2017-09-25 18:12:04 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-09-25 18:12:04 +0300 |
commit | cfb766da54d98ceb145e1bb0bd11c559569dcbfc (patch) | |
tree | 858e336a35d482be7c21124d567192156c67920d /include/linux/sched | |
parent | e19b205be43d11bff638cad4487008c48d21c103 (diff) | |
download | linux-cfb766da54d98ceb145e1bb0bd11c559569dcbfc.tar.xz |
sched/cputime: Expose cputime_adjust()
Will be used by basic cgroup resource stat reporting later.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'include/linux/sched')
-rw-r--r-- | include/linux/sched/cputime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched/cputime.h b/include/linux/sched/cputime.h index 4c5b9735c1ae..9251044335c5 100644 --- a/include/linux/sched/cputime.h +++ b/include/linux/sched/cputime.h @@ -53,7 +53,8 @@ static inline void task_cputime_scaled(struct task_struct *t, extern void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st); extern void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st); - +extern void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, + u64 *ut, u64 *st); /* * Thread group CPU time accounting. |