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:
Sultan Alsawaf 2024-03-12 12:27:34 -07:00 committed by Richard Raya
parent 77224feb50
commit fd9b3b40ac

View File

@ -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