From: Chen Yu Date: Thu, 6 Apr 2023 20:31:48 +0000 (-0700) Subject: x86/sched: Add the SD_ASYM_PACKING flag to the die domain of hybrid processors X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=044f0e27dec6e30bb8875a4a12c5f2594964e93f;p=linux.git x86/sched: Add the SD_ASYM_PACKING flag to the die domain of hybrid processors Intel Meteor Lake hybrid processors have cores in two separate dies. The cores in one of the dies have higher maximum frequency. Use the SD_ASYM_ PACKING flag to give higher priority to the die with CPUs of higher maximum frequency. Suggested-by: Ricardo Neri Signed-off-by: Chen Yu Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20230406203148.19182-13-ricardo.neri-calderon@linux.intel.com --- diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index a335abdfbb3f4..34066f6735ddf 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -583,7 +583,7 @@ static struct sched_domain_topology_level x86_hybrid_topology[] = { #ifdef CONFIG_SCHED_MC { cpu_coregroup_mask, x86_core_flags, SD_INIT_NAME(MC) }, #endif - { cpu_cpu_mask, SD_INIT_NAME(DIE) }, + { cpu_cpu_mask, x86_sched_itmt_flags, SD_INIT_NAME(DIE) }, { NULL, }, };