Skip to contentSkip to conversation

arm64: cpuidle: add __init section marker to arm_cpuidle_init

PATCH Applied Jisheng Zhang 3 participants 4 messages Jul 2, 2015 arm64

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: cpuidle: add __init section marker to arm_cpuidle_init

It is not needed after booting, this patch moves the arm_cpuidle_init() function to the __init section.

---
 arch/arm64/kernel/cpuidle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/cpuidle.c +1 -1
index 7ce589c..9047cab6 100644
@@ -15,7 +15,7 @@
 #include <asm/cpuidle.h>
 #include <asm/cpu_ops.h>
 
-int arm_cpuidle_init(unsigned int cpu)
+int __init arm_cpuidle_init(unsigned int cpu)
 {
 	int ret = -EOPNOTSUPP;
 
Signature · 1 line
2.1.4
#1 lore raw

2015-07-02 10:33 GMT+09:00 Jisheng Zhang <[email protected]>:

Quoted 7 lines

It is not needed after booting, this patch moves the arm_cpuidle_init() function to the __init section.

---
 arch/arm64/kernel/cpuidle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This looks good but I think you can also mark the stub in arch/arm64/include/asm/cpuidle.h.

Best regards,
Krzysztof

#2 lore raw

Dear Krzysztof,

Quoted 4 lines · On Thu, 2 Jul 2015 10:56:47 +0900 Krzysztof Kozlowski…

2015-07-02 10:33 GMT+09:00 Jisheng Zhang <[email protected]>:

Quoted 3 lines

It is not needed after booting, this patch moves the arm_cpuidle_init() function to the __init section.

Quoted 8 lines
Quoted 4 lines
---
 arch/arm64/kernel/cpuidle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This looks good but I think you can also mark the stub in arch/arm64/include/asm/cpuidle.h.

Thanks for review. Has adopted your suggestion in v2.

Thanks,
Jisheng