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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Provide a __cpuinit section which needs to be used instead of __init
when CPU hotplugging is enabled.

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

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
--
2.35.1




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux