From 91c336eebe62fa326d96ea6c490c0c712a24a651 Mon Sep 17 00:00:00 2001 From: Abhilasha Rao Date: Wed, 29 Jul 2020 15:37:30 +0530 Subject: [PATCH] ANDROID: GKI: cputime: Export for thread_group_cputime_adjusted - Add EXPORT_SYMBOL_GPL for thread_group_cputime_adjusted() to allow drivers to be loadable as a module. - This API is required by loadable driver module from samsung to fetch process uptime based on CPU clock ticks to get the exact duration of time app is scheduled in user mode. Signed-off-by: Abhilasha Rao Bug: 158067689 Change-Id: I1843de08edf5bb2eee806845f4b5e0a305da5fe7 (cherry picked from commit bf679b941237ae76d0bba8d98e670819e029847a) --- kernel/sched/cputime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index fc49c1e169d9..a147909bcf16 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -471,6 +471,7 @@ void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st) *ut = cputime.utime; *st = cputime.stime; } +EXPORT_SYMBOL_GPL(thread_group_cputime_adjusted); #else /* !CONFIG_VIRT_CPU_ACCOUNTING_NATIVE: */ @@ -685,6 +686,8 @@ void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st) thread_group_cputime(p, &cputime); cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); } +EXPORT_SYMBOL_GPL(thread_group_cputime_adjusted); + #endif /* !CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */ #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN