summaryrefslogtreecommitdiffstats
path: root/kernel/sched/cputime.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2017-09-25 17:12:04 +0200
committerTejun Heo <tj@kernel.org>2017-09-25 17:12:04 +0200
commitcfb766da54d98ceb145e1bb0bd11c559569dcbfc (patch)
tree858e336a35d482be7c21124d567192156c67920d /kernel/sched/cputime.c
parentLinux 4.14-rc2 (diff)
downloadlinux-cfb766da54d98ceb145e1bb0bd11c559569dcbfc.tar.xz
linux-cfb766da54d98ceb145e1bb0bd11c559569dcbfc.zip
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 'kernel/sched/cputime.c')
-rw-r--r--kernel/sched/cputime.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c
index 14d2dbf97c53..8839b6e8a104 100644
--- a/kernel/sched/cputime.c
+++ b/kernel/sched/cputime.c
@@ -585,9 +585,8 @@ drop_precision:
*
* Assuming that rtime_i+1 >= rtime_i.
*/
-static void cputime_adjust(struct task_cputime *curr,
- struct prev_cputime *prev,
- u64 *ut, u64 *st)
+void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev,
+ u64 *ut, u64 *st)
{
u64 rtime, stime, utime;
unsigned long flags;