mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 04:39:36 +02:00
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: 344826816 Bug: 318526590 Change-Id: I0f03d2e52588822d1a9ef9a5f24944dff4f4e4a0 Signed-off-by: Chungkai Mei <chungkai@google.com> (cherry picked from commit 10558542a1f4889711cde9e72d79bc607935adb1) [Fix trivial conflict due to new is_misfit_task() function being added] Signed-off-by: Qais Yousef <qyousef@google.com>
This commit is contained in:
parent
ed558fd9d8
commit
27ef0d81a1
|
@ -5032,7 +5032,7 @@ static inline int is_misfit_task(struct task_struct *p, struct rq *rq,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
bool need_update = true;
|
||||||
misfit_reason_t reason;
|
misfit_reason_t reason;
|
||||||
|
@ -5054,6 +5054,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);
|
rq->misfit_task_load = max_t(unsigned long, task_h_load(p), 1);
|
||||||
rq->misfit_reason = reason;
|
rq->misfit_reason = reason;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(update_misfit_status);
|
||||||
|
|
||||||
#else /* CONFIG_SMP */
|
#else /* CONFIG_SMP */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user