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>
This commit is contained in:
Tejun Heo 2017-09-25 08:12:04 -07:00 committed by xxmustafacooTR
parent f391ccff65
commit 7793ede198
No known key found for this signature in database
GPG key ID: 520B6FE385CBF5C9
2 changed files with 3 additions and 1 deletions

View file

@ -2463,6 +2463,8 @@ static inline cputime_t task_gtime(struct task_struct *t)
#endif
extern void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
extern void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev,
cputime_t *ut, cputime_t *st);
/*
* Per process flags

View file

@ -642,7 +642,7 @@ drop_precision:
*
* Assuming that rtime_i+1 >= rtime_i.
*/
static void cputime_adjust(struct task_cputime *curr,
void cputime_adjust(struct task_cputime *curr,
struct prev_cputime *prev,
cputime_t *ut, cputime_t *st)
{