ANDROID: sched: export update_misfit_status symbol
Current scheduler cannot update misfit status immediately when we set uclamp min for some latency-sensitive tasks, it may cause some latency for these tasks so we may need to update misfit status in vendor kernel. Bug: 318526590 Change-Id: I0f03d2e52588822d1a9ef9a5f24944dff4f4e4a0 Signed-off-by: Chungkai Mei <chungkai@google.com> (cherry picked from commit 10558542a1f4889711cde9e72d79bc607935adb1)
This commit is contained in:
committed by
Chung-Kai (Michael) Mei
parent
f0b67aae69
commit
c5f9e2f558
+2
-1
@@ -5084,7 +5084,7 @@ static inline int task_fits_cpu(struct task_struct *p, int cpu)
|
||||
return (util_fits_cpu(util, uclamp_min, uclamp_max, cpu) > 0);
|
||||
}
|
||||
|
||||
static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
|
||||
inline void update_misfit_status(struct task_struct *p, struct rq *rq)
|
||||
{
|
||||
if (!sched_asym_cpucap_active())
|
||||
return;
|
||||
@@ -5105,6 +5105,7 @@ static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
|
||||
*/
|
||||
rq->misfit_task_load = max_t(unsigned long, task_h_load(p), 1);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(update_misfit_status);
|
||||
|
||||
#else /* CONFIG_SMP */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user