* [PATCH] cpu: Remove unused init_cpu_online
@ 2024-12-20 16:57 linux
2024-12-30 18:38 ` Yury Norov
0 siblings, 1 reply; 2+ messages in thread
From: linux @ 2024-12-20 16:57 UTC (permalink / raw)
To: yury.norov, linux, tglx, peterz; +Cc: linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
The last use of init_cpu_online() was removed by the
commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
include/linux/cpumask.h | 1 -
kernel/cpu.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index 9278a50d514f..590d8438514c 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -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))
diff --git a/kernel/cpu.c b/kernel/cpu.c
index b605334f8ee6..2ac860df1ff0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -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)
{
/*
--
2.47.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cpu: Remove unused init_cpu_online
2024-12-20 16:57 [PATCH] cpu: Remove unused init_cpu_online linux
@ 2024-12-30 18:38 ` Yury Norov
0 siblings, 0 replies; 2+ messages in thread
From: Yury Norov @ 2024-12-30 18:38 UTC (permalink / raw)
To: linux; +Cc: linux, tglx, peterz, linux-kernel
On Fri, Dec 20, 2024 at 04:57:39PM +0000, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> The last use of init_cpu_online() was removed by the
> commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Dear Dr. Gilbert,
Applied in bitmap-for-next.
With best regards,
Dr. Yury V Norov
> ---
> include/linux/cpumask.h | 1 -
> kernel/cpu.c | 5 -----
> 2 files changed, 6 deletions(-)
>
> diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
> index 9278a50d514f..590d8438514c 100644
> --- a/include/linux/cpumask.h
> +++ b/include/linux/cpumask.h
> @@ -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))
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index b605334f8ee6..2ac860df1ff0 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -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)
> {
> /*
> --
> 2.47.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-30 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 16:57 [PATCH] cpu: Remove unused init_cpu_online linux
2024-12-30 18:38 ` Yury Norov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox