sched: fair: Fix load balancing for big tasks

cpu_capacity() returns maximum capacity when WALT is disabled, hence
we couldn't take advantage of CAF's optimization
Return CPU's original capacity instead to make it usable

Change-Id: I524f9f1872f038c0b77ba404b1caf0ce75321dd8
Signed-off-by: Diep Quynh <remilia.1505@gmail.com>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
fourteen
Diep Quynh 4 years ago committed by Jenna
parent 746034a7a4
commit 7ca8c215a8
  1. 2
      kernel/sched/sched.h

@ -3079,7 +3079,7 @@ static inline bool is_min_capacity_cpu(int cpu)
#ifdef CONFIG_SMP
static inline int cpu_capacity(int cpu)
{
return SCHED_CAPACITY_SCALE;
return capacity_orig_of(cpu);
}
#endif

Loading…
Cancel
Save