diff options
author | Tejun Heo <tj@kernel.org> | 2017-09-25 08:12:04 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-09-25 08:12:04 -0700 |
commit | cfb766da54d98ceb145e1bb0bd11c559569dcbfc (patch) | |
tree | 858e336a35d482be7c21124d567192156c67920d /kernel/sched | |
parent | e19b205be43d11bff638cad4487008c48d21c103 (diff) | |
download | op-kernel-dev-cfb766da54d98ceb145e1bb0bd11c559569dcbfc.zip op-kernel-dev-cfb766da54d98ceb145e1bb0bd11c559569dcbfc.tar.gz |
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 14d2dbf..8839b6e 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; |