ANDROID: scheduler: export task_sched_runtime

For power and performance monitoring, need to known tasks' runtime for
loading estimation.

But now, other modules can't get task_scehd_runtime.

Export task_sched_runtime to let other modules get task_scehd_runtime.

Bug: 233862809
Signed-off-by: Poting Chen <poting.chen@mediatek.com>
Signed-off-by: Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Change-Id: Ida5caf8ed0a32954fc0b0ed950f163c7ca493fef
(cherry picked from commit fdc8f778e23dfb41b58f87edccf419eb53627ea3)
This commit is contained in:
Poting Chen 2021-07-06 17:34:11 +08:00 committed by Todd Kjos
parent aa0e7ec774
commit f85e3d9101
1 changed files with 1 additions and 0 deletions

View File

@ -5267,6 +5267,7 @@ unsigned long long task_sched_runtime(struct task_struct *p)
return ns;
}
EXPORT_SYMBOL_GPL(task_sched_runtime);
#ifdef CONFIG_SCHED_DEBUG
static u64 cpu_resched_latency(struct rq *rq)