diff options
| author | Hui Wang <hui.wang@canonical.com> | 2026-04-05 03:42:41 +0300 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-04-05 03:42:41 +0300 |
| commit | e8c98b3f810d8f880dba2a682e63c53810d2eae3 (patch) | |
| tree | 76ea43eeb524e2cc36cf2d691fdb1484975e3d24 | |
| parent | 22a9c228afb609bb7413eb5d26e6a672c939aa59 (diff) | |
| download | linux-e8c98b3f810d8f880dba2a682e63c53810d2eae3.tar.xz | |
riscv: remove redundant #ifdef check in cpu-hotplug
The cpu-hotplug.c only is built when CONFIG_HOTPLUG_CPU is defined,
it is not needed to check HOTPLUG_CPU in this file.
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://patch.msgid.link/20260304033403.238012-2-hui.wang@canonical.com
[pjw@kernel.org: removed extra whitespace at EOF]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
| -rw-r--r-- | arch/riscv/kernel/cpu-hotplug.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c index 3f50d3dd76c6..a0ee426f6d93 100644 --- a/arch/riscv/kernel/cpu-hotplug.c +++ b/arch/riscv/kernel/cpu-hotplug.c @@ -43,7 +43,6 @@ int __cpu_disable(void) return 0; } -#ifdef CONFIG_HOTPLUG_CPU /* * Called on the thread which is asking for a CPU to be shutdown, if the * CPU reported dead to the hotplug core. @@ -75,4 +74,3 @@ void __noreturn arch_cpu_idle_dead(void) /* It should never reach here */ BUG(); } -#endif |
