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

Commit 1055854

Browse files
Chungkai Meitoddkjos
authored andcommitted
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]>
1 parent a0b3b39 commit 1055854

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
@@ -4574,7 +4574,7 @@ static inline int task_fits_cpu(struct task_struct *p, int cpu)
45744574
return (util_fits_cpu(util, uclamp_min, uclamp_max, cpu) > 0);
45754575
}
45764576

4577-
static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
4577+
inline void update_misfit_status(struct task_struct *p, struct rq *rq)
45784578
{
45794579
bool need_update = true;
45804580

@@ -4598,6 +4598,7 @@ static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
45984598
*/
45994599
rq->misfit_task_load = max_t(unsigned long, task_h_load(p), 1);
46004600
}
4601+
EXPORT_SYMBOL_GPL(update_misfit_status);
46014602

46024603
#else /* CONFIG_SMP */
46034604

0 commit comments

Comments
 (0)