sched/topology: Rename 'DIE' domain to 'PKG'
authorPeter Zijlstra <peterz@infradead.org>
Wed, 12 Jul 2023 14:10:56 +0000 (16:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Oct 2023 07:38:16 +0000 (09:38 +0200)
While reworking the x86 topology code Thomas tripped over creating a 'DIE' domain
for the package mask. :-)

Since these names are CONFIG_SCHED_DEBUG=y only, rename them to make the
name less ambiguous.

[ Shrikanth Hegde: rename on s390 as well. ]
[ Valentin Schneider: also rename it in the comments. ]
[ mingo: port to recent kernels & find all remaining occurances. ]

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Valentin Schneider <vschneid@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20230712141056.GI3100107@hirez.programming.kicks-ass.net
arch/powerpc/kernel/smp.c
arch/s390/kernel/topology.c
arch/x86/kernel/smpboot.c
kernel/sched/fair.c
kernel/sched/topology.c

index 5826f5108a12443c6ff148a422b00ee4900184aa..4e4870031265c74977e2e6da4f81387a9bda236c 100644 (file)
@@ -1051,7 +1051,7 @@ static struct sched_domain_topology_level powerpc_topology[] = {
 #endif
        { shared_cache_mask, powerpc_shared_cache_flags, SD_INIT_NAME(CACHE) },
        { cpu_mc_mask, SD_INIT_NAME(MC) },
-       { cpu_cpu_mask, SD_INIT_NAME(DIE) },
+       { cpu_cpu_mask, SD_INIT_NAME(PKG) },
        { NULL, },
 };
 
@@ -1595,7 +1595,7 @@ static void add_cpu_to_masks(int cpu)
        /* Skip all CPUs already part of current CPU core mask */
        cpumask_andnot(mask, cpu_online_mask, cpu_core_mask(cpu));
 
-       /* If chip_id is -1; limit the cpu_core_mask to within DIE*/
+       /* If chip_id is -1; limit the cpu_core_mask to within PKG */
        if (chip_id == -1)
                cpumask_and(mask, mask, cpu_cpu_mask(cpu));
 
index 68adf1de8888b25fbfaea0a45537e8cd4fb21c2f..66bda6a8f918c27badbe1ba6077d65a542928460 100644 (file)
@@ -522,7 +522,7 @@ static struct sched_domain_topology_level s390_topology[] = {
        { cpu_coregroup_mask, cpu_core_flags, SD_INIT_NAME(MC) },
        { cpu_book_mask, SD_INIT_NAME(BOOK) },
        { cpu_drawer_mask, SD_INIT_NAME(DRAWER) },
-       { cpu_cpu_mask, SD_INIT_NAME(DIE) },
+       { cpu_cpu_mask, SD_INIT_NAME(PKG) },
        { NULL, },
 };
 
index 02765d9da682ca3fd635a58fba32d28257034177..e3b3e806bf61dd10b6759de561c5a4f6ca93abcc 100644 (file)
@@ -641,13 +641,13 @@ static void __init build_sched_topology(void)
        };
 #endif
        /*
-        * When there is NUMA topology inside the package skip the DIE domain
+        * When there is NUMA topology inside the package skip the PKG domain
         * since the NUMA domains will auto-magically create the right spanning
         * domains based on the SLIT.
         */
        if (!x86_has_numa_in_package) {
                x86_topology[i++] = (struct sched_domain_topology_level){
-                       cpu_cpu_mask, x86_die_flags, SD_INIT_NAME(DIE)
+                       cpu_cpu_mask, x86_die_flags, SD_INIT_NAME(PKG)
                };
        }
 
index 922905194c0c30e9e39a13b4187f3d571550f04f..a751e552f25392d034bdaba2b49ad810077dda73 100644 (file)
@@ -9555,7 +9555,7 @@ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu)
  * can only do it if @group is an SMT group and has exactly on busy CPU. Larger
  * imbalances in the number of CPUS are dealt with in find_busiest_group().
  *
- * If we are balancing load within an SMT core, or at DIE domain level, always
+ * If we are balancing load within an SMT core, or at PKG domain level, always
  * proceed.
  *
  * Return: true if @env::dst_cpu can do with asym_packing load balance. False
index d9508617f7f8fba9c91320ac2c226475eef19e6c..a63729f87c21d8e7d9de582cd1d9d35280ae70fd 100644 (file)
@@ -1119,7 +1119,7 @@ fail:
  *
  *  - Simultaneous multithreading (SMT)
  *  - Multi-Core Cache (MC)
- *  - Package (DIE)
+ *  - Package (PKG)
  *
  * Where the last one more or less denotes everything up to a NUMA node.
  *
@@ -1141,13 +1141,13 @@ fail:
  *
  * CPU   0   1   2   3   4   5   6   7
  *
- * DIE  [                             ]
+ * PKG  [                             ]
  * MC   [             ] [             ]
  * SMT  [     ] [     ] [     ] [     ]
  *
  *  - or -
  *
- * DIE  0-7 0-7 0-7 0-7 0-7 0-7 0-7 0-7
+ * PKG  0-7 0-7 0-7 0-7 0-7 0-7 0-7 0-7
  * MC  0-3 0-3 0-3 0-3 4-7 4-7 4-7 4-7
  * SMT  0-1 0-1 2-3 2-3 4-5 4-5 6-7 6-7
  *
@@ -1681,7 +1681,7 @@ static struct sched_domain_topology_level default_topology[] = {
 #ifdef CONFIG_SCHED_MC
        { cpu_coregroup_mask, cpu_core_flags, SD_INIT_NAME(MC) },
 #endif
-       { cpu_cpu_mask, SD_INIT_NAME(DIE) },
+       { cpu_cpu_mask, SD_INIT_NAME(PKG) },
        { NULL, },
 };