projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a6d6a6
)
sched/fair: Mark sched_init_granularity __init
author
Muchun Song
<songmuchun@bytedance.com>
Mon, 6 Apr 2020 07:47:50 +0000
(15:47 +0800)
committer
Peter Zijlstra
<peterz@infradead.org>
Thu, 30 Apr 2020 18:14:41 +0000
(20:14 +0200)
Function sched_init_granularity() is only called from __init
functions, so mark it __init as well.
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link:
https://lkml.kernel.org/r/20200406074750.56533-1-songmuchun@bytedance.com
kernel/sched/fair.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/fair.c
b/kernel/sched/fair.c
index fac5b2f8524776197885f7ac83a9f2ecf358e542..cd7fd7e2b579a2bef81730f653b7c8f7e4174d6b 100644
(file)
--- a/
kernel/sched/fair.c
+++ b/
kernel/sched/fair.c
@@
-191,7
+191,7
@@
static void update_sysctl(void)
#undef SET_SYSCTL
}
-void sched_init_granularity(void)
+void
__init
sched_init_granularity(void)
{
update_sysctl();
}