mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
sched/fair: Set asym priority equally for all CPUs in a performance domain
All CPUs in a performance domain share the same capacity, and therefore aren't different from one another when distinguishing between which one is better for asymmetric packing. Instead of unfairly prioritizing lower-numbered CPUs within the same performance domain, treat all CPUs in a performance domain equally for asymmetric packing. Change-Id: Ibe0c10034d237894d505c5022c73b2671a632004 Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
77224feb50
commit
fd9b3b40ac
@ -166,7 +166,7 @@ __read_mostly unsigned int sysctl_sched_walt_cpu_high_irqload =
|
||||
*/
|
||||
int __weak arch_asym_cpu_priority(int cpu)
|
||||
{
|
||||
return -cpu;
|
||||
return -arch_scale_cpu_capacity(NULL, cpu);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user