arm64: cpuidle: add __init section marker to arm_cpuidle_init
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
@@ -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
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__initsection.Signed-off-by Jisheng Zhang <[email protected]>--- 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
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__initsection.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Jisheng Zhang <[email protected]>--- 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
Quoted 4 lines · Jisheng Zhang
It is not needed after booting, this patch moves the
arm_cpuidle_init()function to the__initsection.Signed-off-by Jisheng Zhang <[email protected]>
Applied. Thanks.
Signature · 1 line
Catalin