From: "seokhoon.yoon" <iamyooon@gmail.com>
To: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
iamyooon@gmail.com, linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()
Date: Sat, 20 Aug 2016 16:28:07 +0900 [thread overview]
Message-ID: <1471678087-5149-1-git-send-email-iamyooon@gmail.com> (raw)
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
reply other threads:[~2016-08-20 7:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1471678087-5149-1-git-send-email-iamyooon@gmail.com \
--to=iamyooon@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox