linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()
@ 2016-08-20  7:28 seokhoon.yoon
  0 siblings, 0 replies; only message in thread
From: seokhoon.yoon @ 2016-08-20  7:28 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, iamyooon, linux-kernel

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-20  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-20  7:28 [PATCH 1/1] sched/clock: add __init attribute to sched_clock_init() seokhoon.yoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).