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>
This commit is contained in:
parent
a0b3b39898
commit
10558542a1
@ -4574,7 +4574,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)
|
||||
{
|
||||
bool need_update = true;
|
||||
|
||||
@ -4598,6 +4598,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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user