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: 195914330
Signed-off-by: Poting Chen <poting.chen@mediatek.com>
Signed-off-by: Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Change-Id: Ida5caf8ed0a32954fc0b0ed950f163c7ca493fef
This commit is contained in:
Poting Chen 2021-07-06 17:34:11 +08:00 committed by Todd Kjos
parent 3425d6179e
commit fdc8f778e2

View File

@ -4217,6 +4217,7 @@ unsigned long long task_sched_runtime(struct task_struct *p)
return ns;
}
EXPORT_SYMBOL_GPL(task_sched_runtime);
/*
* This function gets called by the timer code, with HZ frequency.