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


Groups > linux.kernel > #1470145 > unrolled thread

[RESEND PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()

Started by"seokhoon.yoon" <iamyooon@gmail.com>
First post2016-08-25 15:30 +0200
Last post2016-08-25 15:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH 1/1] sched/clock: add __init attribute to sched_clock_init() "seokhoon.yoon" <iamyooon@gmail.com> - 2016-08-25 15:30 +0200

#1470145 — [RESEND PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()

From"seokhoon.yoon" <iamyooon@gmail.com>
Date2016-08-25 15:30 +0200
Subject[RESEND PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()
Message-ID<sa2Tf-1tU-31@gated-at.bofh.it>
sched_clock_init() is only called from start_kernel().
So add __init attritute to it.

Signed-off-by: seokhoon.yoon <iamyooon@gmail.com>
---
 kernel/sched/clock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
index e85a725..e5795e8 100644
--- a/kernel/sched/clock.c
+++ b/kernel/sched/clock.c
@@ -147,7 +147,7 @@ static inline struct sched_clock_data *cpu_sdc(int cpu)
 	return &per_cpu(sched_clock_data, cpu);
 }
 
-void sched_clock_init(void)
+void __init sched_clock_init(void)
 {
 	u64 ktime_now = ktime_to_ns(ktime_get());
 	int cpu;
@@ -366,7 +366,7 @@ EXPORT_SYMBOL_GPL(sched_clock_idle_wakeup_event);
 
 #else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
 
-void sched_clock_init(void)
+void __init sched_clock_init(void)
 {
 	sched_clock_running = 1;
 }
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web