Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1175647 > unrolled thread

[PATCH] arm64: cpuidle: add __init section marker to arm_cpuidle_init

Started byJisheng Zhang <jszhang@marvell.com>
First post2015-07-02 03:40 +0200
Last post2015-07-02 04:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm64: cpuidle: add __init section marker to arm_cpuidle_init Jisheng Zhang <jszhang@marvell.com> - 2015-07-02 03:40 +0200
    Re: [PATCH] arm64: cpuidle: add __init section marker to arm_cpuidle_init Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-07-02 04:00 +0200

#1175647 — [PATCH] arm64: cpuidle: add __init section marker to arm_cpuidle_init

FromJisheng Zhang <jszhang@marvell.com>
Date2015-07-02 03:40 +0200
Subject[PATCH] arm64: cpuidle: add __init section marker to arm_cpuidle_init
Message-ID<pHBDQ-4uw-23@gated-at.bofh.it>
It is not needed after booting, this patch moves the arm_cpuidle_init()
function to the __init section.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 arch/arm64/kernel/cpuidle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c
index 7ce589c..9047cab6 100644
--- a/arch/arm64/kernel/cpuidle.c
+++ b/arch/arm64/kernel/cpuidle.c
@@ -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;
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1175652

FromKrzysztof Kozlowski <k.kozlowski@samsung.com>
Date2015-07-02 04:00 +0200
Message-ID<pHBXc-4BE-9@gated-at.bofh.it>
In reply to#1175647
2015-07-02 10:33 GMT+09:00 Jisheng Zhang <jszhang@marvell.com>:
> It is not needed after booting, this patch moves the arm_cpuidle_init()
> function to the __init section.
>
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web