diff mbox series

[02/12] parisc: Add __cpuinit section for HOTPLUG_CPU

Message ID 20220325143833.402631-2-deller@gmx.de (mailing list archive)
State Superseded
Headers show
Series [01/12] parisc: Switch from GENERIC_CPU_DEVICES to GENERIC_ARCH_TOPOLOGY | expand

Commit Message

Helge Deller March 25, 2022, 2:38 p.m. UTC
Provide a __cpuinit section which needs to be used instead of __init
when CPU hotplugging is enabled.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/include/asm/sections.h | 6 ++++++
 1 file changed, 6 insertions(+)

--
2.35.1
diff mbox series

Patch

diff --git a/arch/parisc/include/asm/sections.h b/arch/parisc/include/asm/sections.h
index bb52aea0cb21..4c28c7adaf5f 100644
--- a/arch/parisc/include/asm/sections.h
+++ b/arch/parisc/include/asm/sections.h
@@ -7,6 +7,12 @@ 

 extern char __alt_instructions[], __alt_instructions_end[];

+#ifdef CONFIG_HOTPLUG_CPU
+#define __cpuinit
+#else
+#define __cpuinit	__init
+#endif
+
 #ifdef CONFIG_64BIT

 #define HAVE_DEREFERENCE_FUNCTION_DESCRIPTOR 1