mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
sched: EAS/WALT: Don't take into account of running task's util
For upmigrating misfit running task case, the currently running task's util has been counted into cpu_util(). Thus currently __cpu_overutilized() which add task's uitl twice is overestimated. Change-Id: I5326f4c736a55679009d2e7293f8792311c04294 Signed-off-by: Ke Wang <ke.wang@spreadtrum.com>
This commit is contained in:
@@ -7049,7 +7049,8 @@ static int select_energy_cpu_brute(struct task_struct *p, int prev_cpu, int sync
|
||||
|
||||
|
||||
#ifdef CONFIG_SCHED_WALT
|
||||
if (!walt_disabled && sysctl_sched_use_walt_cpu_util)
|
||||
if (!walt_disabled && sysctl_sched_use_walt_cpu_util &&
|
||||
p->state == TASK_WAKING)
|
||||
delta = task_util(p);
|
||||
#endif
|
||||
/* Not enough spare capacity on previous cpu */
|
||||
|
||||
Reference in New Issue
Block a user