Commit d476b6df authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Aubrey Li
Browse files

sched,x86: Don't use cluster topology for x86 hybrid CPUs

mainline inclusion
from mainline-v5.16-rc5
commit cabdc3a8
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8LVOX


CVE: N/A

--------------------------------

Intel-SIG: commit cabdc3a8 sched,x86: Don't use cluster topology
for x86 hybrid CPUs.
Cluster scheduler feature backport.

--------------------------------

For x86 hybrid CPUs like Alder Lake, the order of CPU selection should
be based strictly on CPU priority.  Don't include cluster topology for
hybrid CPUs to avoid interference with such CPU selection order.

On Alder Lake, the Atom CPU cluster has more capacity (4 Atom CPUs) vs
Big core cluster (2 hyperthread CPUs). This could potentially bias CPU
selection towards Atom over Big Core, when Big core CPU has higher
priority.

Fixes: 66558b73 ("sched: Add cluster scheduler level for x86")
Suggested-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Tested-by: default avatarRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://lkml.kernel.org/r/20211204091402.GM16608@worktop.programming.kicks-ass.net


Signed-off-by: default avatarAubrey Li <aubrey.li@linux.intel.com>
parent 55516c5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment