topology: Remove unused cpu_cluster_mask()
PATCH 1/1 topology: Remove unused cpu_cluster_mask()
default_topology[] uses cpu_clustergroup_mask() for the CLS level (guarded by CONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).
related Kconfig for ARM64")
--- include/linux/topology.h | 7 ------- 1 file changed, 7 deletions(-)
include/linux/topology.h +0 -7
@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) }#endif -#if defined(CONFIG_SCHED_CLUSTER ) && !defined(cpu_cluster_mask) -static inline const struct cpumask *cpu_cluster_mask (int cpu) -{ -return topology_cluster_cpumask (cpu); -} -#endif -static inline const struct cpumask *cpu_cpu_mask (int cpu) {return cpumask_of_node (cpu_to_node (cpu));
Signature · 1 line
2.25.1
- Barry Song <[email protected]> bounced
+ Barry Song <[email protected]>
Quoted 30 lines · Dietmar Eggemann
default_topology[] uses
cpu_clustergroup_mask()for the CLS level (guarded byCONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).Fixes 778c558f49a2c ("sched: Add cluster scheduler level in core andrelated
Kconfigfor ARM64")Signed-off-by Dietmar Eggemann <[email protected]>--- include/linux/topology.h | 7 ------- 1 file changed, 7 deletions(-)include/linux/topology.h +0
-7@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) }#endif -#if defined(CONFIG_SCHED_CLUSTER ) && !defined(cpu_cluster_mask) -static inline const struct cpumask *cpu_cluster_mask (int cpu) -{ -return topology_cluster_cpumask (cpu); -} -#endif -static inline const struct cpumask *cpu_cpu_mask (int cpu) {return cpumask_of_node (cpu_to_node (cpu));
Barry Song
Acked-byQuoted 25 lines · Dietmar Eggemann
- Barry Song <[email protected]> bounced
+ Barry Song <[email protected]>Quoted 20 lines · Dietmar Eggemann
default_topology[] uses
cpu_clustergroup_mask()for the CLS level (guarded byCONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).Fixes 778c558f49a2c ("sched: Add cluster scheduler level in core andrelated
Kconfigfor ARM64")Signed-off-by Dietmar Eggemann <[email protected]>--- include/linux/topology.h | 7 ------- 1 file changed, 7 deletions(-)include/linux/topology.h +0
-0@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) }#endif
Quoted 7 lines
include/linux/topology.h static inline const struct cpumask *cpu_smt_mask(int cpu) · line 249
Quoted 7 lines
include/linux/topology.h +0
-7-#if defined(CONFIG_SCHED_CLUSTER ) && !defined(cpu_cluster_mask) -static inline const struct cpumask *cpu_cluster_mask (int cpu) -{ -return topology_cluster_cpumask (cpu); -} -#endif -
I agree there are no users right now. I probably wrote it like cpu_smt_mask() and used it in kernel/sched for the wake_affine patch but forgot to remove it while sending patches without wake_affine.
Quoted 4 lines
include/linux/topology.h static inline const struct cpumask *cpu_smt_mask(int cpu) · line 245
Quoted 3 lines
include/linux/topology.h +0
-0static inline const struct cpumask *cpu_cpu_mask (int cpu) {return cpumask_of_node (cpu_to_node (cpu));
Thanks
Barry
The following commit has been merged into the sched/core branch of tip:
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 991d8d8142cad94f9c5c05db25e67fa83d6f772a Gitweb: https://git.kernel.org/tip/991d8d8142cad94f9c5c05db25e67fa83d6f772a Author: Dietmar Eggemann <[email protected]> AuthorDate: Fri, 13 May 2022 11:34:33 +02:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Thu, 19 May 2022 23:46:13 +02:00
topology: Remove unused cpu_cluster_mask()
default_topology[] uses cpu_clustergroup_mask() for the CLS level (guarded by CONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).
related Kconfig for ARM64")
--- include/linux/topology.h | 7 ------- 1 file changed, 7 deletions(-)
include/linux/topology.h +0 -7
@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) }#endif -#if defined(CONFIG_SCHED_CLUSTER ) && !defined(cpu_cluster_mask) -static inline const struct cpumask *cpu_cluster_mask (int cpu) -{ -return topology_cluster_cpumask (cpu); -} -#endif -static inline const struct cpumask *cpu_cpu_mask (int cpu) {return cpumask_of_node (cpu_to_node (cpu));
Quoted 16 lines · On Fri, May 20, 2022 at 9:57 AM tip-bot2 for Dietmar Eggemann…
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 991d8d8142cad94f9c5c05db25e67fa83d6f772a Gitweb: https://git.kernel.org/tip/991d8d8142cad94f9c5c05db25e67fa83d6f772a Author: Dietmar Eggemann <[email protected]> AuthorDate: Fri, 13 May 2022 11:34:33 +02:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Thu, 19 May 2022 23:46:13 +02:00topology: Remove unused
cpu_cluster_mask()default_topology[] uses
cpu_clustergroup_mask()for the CLS level (guarded byCONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).
Quoted 8 lines
Fixes 778c558f49a2c ("sched: Add cluster scheduler level in core andrelated
Kconfigfor ARM64")Signed-off-by Dietmar Eggemann <[email protected]>Signed-off-by Peter Zijlstra (Intel) <[email protected]>Acked-by Barry Song <[email protected]>---
Hi Peter,
I also received emails which say Greg has put it into drive-core-testing and driver-core-next.
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=driver-core-next&id=15f214f9bdb7c1f5
Quoted 11 lines
include/linux/topology.h | 7 ------- 1 file changed, 7 deletions(-)include/linux/topology.h +0
-0@@ -240,13 +240,6 @@ static inline const struct cpumask *cpu_smt_mask(int cpu) }#endif
include/linux/topology.h static inline const struct cpumask *cpu_smt_mask(int cpu) · line 245
Quoted 10 lines
include/linux/topology.h +0
-7-#if defined(CONFIG_SCHED_CLUSTER ) && !defined(cpu_cluster_mask) -static inline const struct cpumask *cpu_cluster_mask (int cpu) -{ -return topology_cluster_cpumask (cpu); -} -#endif -static inline const struct cpumask *cpu_cpu_mask (int cpu) {return cpumask_of_node (cpu_to_node (cpu));
Thanks
Barry
Quoted 27 lines · Barry Song
Quoted 16 lines · On Fri, May 20, 2022 at 9:57 AM tip-bot2 for Dietmar Eggemann…
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 991d8d8142cad94f9c5c05db25e67fa83d6f772a Gitweb: https://git.kernel.org/tip/991d8d8142cad94f9c5c05db25e67fa83d6f772a Author: Dietmar Eggemann <[email protected]> AuthorDate: Fri, 13 May 2022 11:34:33 +02:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Thu, 19 May 2022 23:46:13 +02:00topology: Remove unused
cpu_cluster_mask()default_topology[] uses
cpu_clustergroup_mask()for the CLS level (guarded byCONFIG_SCHED_CLUSTER) which is currently provided by x86 (arch/x86/kernel/smpboot.c) and arm64 (drivers/base/arch_topology.c).Quoted 8 lines
Fixes 778c558f49a2c ("sched: Add cluster scheduler level in core andrelated
Kconfigfor ARM64")Signed-off-by Dietmar Eggemann <[email protected]>Signed-off-by Peter Zijlstra (Intel) <[email protected]>Acked-by Barry Song <[email protected]>---
Quoted 4 lines
Hi Peter,
I also received emails which say Greg has put it into drive-core-testing and driver-core-next.
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=driver-core-next&id=15f214f9bdb7c1f5
Damn, I must've missed that. It think git will DTRT and the trees will merge painlessly.