Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c5f9e2f

Browse files
author
Chungkai Mei
committed
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 <[email protected]> (cherry picked from commit 1055854)
1 parent f0b67aa commit c5f9e2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/sched/fair.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5084,7 +5084,7 @@ static inline int task_fits_cpu(struct task_struct *p, int cpu)
50845084
return (util_fits_cpu(util, uclamp_min, uclamp_max, cpu) > 0);
50855085
}
50865086

5087-
static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
5087+
inline void update_misfit_status(struct task_struct *p, struct rq *rq)
50885088
{
50895089
if (!sched_asym_cpucap_active())
50905090
return;
@@ -5105,6 +5105,7 @@ static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
51055105
*/
51065106
rq->misfit_task_load = max_t(unsigned long, task_h_load(p), 1);
51075107
}
5108+
EXPORT_SYMBOL_GPL(update_misfit_status);
51085109

51095110
#else /* CONFIG_SMP */
51105111

0 commit comments

Comments
 (0)