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 | cfb766da54d98ceb145e1bb0bd11c559569dcbfc (patch) | |
tree | 858e336a35d482be7c21124d567192156c67920d /kernel/sched | |
parent | Linux 4.14-rc2 (diff) | |
download | linux-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')
-rw-r--r-- | kernel/sched/cputime.c | 5 |
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; |