Skip to contentSkip to conversation

cpu: Remove unused init_cpu_online

PATCH Applied [email protected] 2 participants 2 messages Dec 20, 2024 – Dec 30, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpu: Remove unused init_cpu_online

From: "Dr. David Alan Gilbert" <[email protected]>

The last use of init_cpu_online() was removed by the commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")

Remove it.

---
 include/linux/cpumask.h | 1 -
 kernel/cpu.c            | 5 -----
 2 files changed, 6 deletions(-)
include/linux/cpumask.h +0 -1
index 9278a50d514f..590d8438514c 100644
@@ -1043,7 +1043,6 @@ extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
 /* Wrappers for arch boot code to manipulate normally-constant masks */
 void init_cpu_present(const struct cpumask *src);
 void init_cpu_possible(const struct cpumask *src);
-void init_cpu_online(const struct cpumask *src);
 
 #define assign_cpu(cpu, mask, val)	\
 	assign_bit(cpumask_check(cpu), cpumask_bits(mask), (val))
kernel/cpu.c +0 -5
index b605334f8ee6..2ac860df1ff0 100644
@@ -3128,11 +3128,6 @@ void init_cpu_possible(const struct cpumask *src)
 	cpumask_copy(&__cpu_possible_mask, src);
 }
 
-void init_cpu_online(const struct cpumask *src)
-{
-	cpumask_copy(&__cpu_online_mask, src);
-}
-
 void set_cpu_online(unsigned int cpu, bool online)
 {
 	/*
Signature · 1 line
2.47.1
maintainer Applied
#1 lore raw
Quoted 8 lines · On Fri, Dec 20, 2024 at 04:57:39PM +0000, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The last use of init_cpu_online() was removed by the commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")

Remove it.

Dear Dr. Gilbert,

Applied in bitmap-for-next.

With best regards,
Dr. Yury V Norov

Quoted 35 lines
---
 include/linux/cpumask.h | 1 -
 kernel/cpu.c            | 5 -----
 2 files changed, 6 deletions(-)
include/linux/cpumask.h +0 -1
index 9278a50d514f..590d8438514c 100644
@@ -1043,7 +1043,6 @@ extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
 /* Wrappers for arch boot code to manipulate normally-constant masks */
 void init_cpu_present(const struct cpumask *src);
 void init_cpu_possible(const struct cpumask *src);
-void init_cpu_online(const struct cpumask *src);
 
 #define assign_cpu(cpu, mask, val)	\
 	assign_bit(cpumask_check(cpu), cpumask_bits(mask), (val))
kernel/cpu.c +0 -5
index b605334f8ee6..2ac860df1ff0 100644
@@ -3128,11 +3128,6 @@ void init_cpu_possible(const struct cpumask *src)
 	cpumask_copy(&__cpu_possible_mask, src);
 }
 
-void init_cpu_online(const struct cpumask *src)
-{
-	cpumask_copy(&__cpu_online_mask, src);
-}
-
 void set_cpu_online(unsigned int cpu, bool online)
 {
 	/*
Signature · 1 line
2.47.1