Skip to contentSkip to conversation

sched/clock: add __init attribute to sched_clock_init()

PATCH Superseded seokhoon.yoon 1 participant 1 message Aug 20, 2016 Scheduler

lore
Share & tools
lore
#0 lore raw

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

sched_clock_init() is only called from start_kernel(). So add __init attritute to it.

---
 kernel/sched/clock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/clock.c +2 -2
index e85a725..e5795e8 100644
@@ -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;
 }
Signature · 1 line
1.9.1