Skip to content

Commit

Permalink
sched/fair: Mark sched_init_granularity __init
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Muchun Song authored and Peter Zijlstra committed Apr 30, 2020
1 parent 5a6d6a6 commit f38f12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f38f12d

Please sign in to comment.