sched: mark autogroup_init() __init
PATCH 1/1 sched: mark autogroup_init() __init
autogroup_init() is only called at boot time.
Signed-off-by Yong Zhang <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Mike Galbraith <[email protected]>
--- kernel/sched_autogroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched_autogroup.c +1 -1
@@ -9,7 +9,7 @@ unsigned int __read_mostly sysctl_sched_autogroup_enabled = 1;static struct autogroup autogroup_default;static atomic_t autogroup_seq_nr; -static void autogroup_init (struct task_struct *init_task) +static void __init autogroup_init (struct task_struct *init_task) { autogroup_default.tg = &init_task_group; init_task_group.autogroup = &autogroup_default;
Signature · 1 line
1.7.0.4
Quoted 6 lines · Yong Zhang
autogroup_init()is only called at boot time.Signed-off-by Yong Zhang <[email protected]>Cc Ingo Molnar <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Mike Galbraith <[email protected]>=
Thanks
[tip:sched/urgent] sched: Mark autogroup_init() __init
In reply to Yong ZhangCommit-ID: 0ca0873555c0abe17b28c25b19f82857c0ddd2bc Gitweb: http://git.kernel.org/tip/0ca0873555c0abe17b28c25b19f82857c0ddd2bc Author: Yong Zhang <[email protected]> AuthorDate: Fri, 7 Jan 2011 12:43:45 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 7 Jan 2011 15:54:36 +0100
sched: Mark autogroup_init() __init
autogroup_init() is only called at boot time.
Signed-off-by Yong Zhang <[email protected]>
Cc Mike Galbraith <[email protected]>
Signed-off-by Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched_autogroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched_autogroup.c +1 -1
@@ -9,7 +9,7 @@ unsigned int __read_mostly sysctl_sched_autogroup_enabled = 1;static struct autogroup autogroup_default;static atomic_t autogroup_seq_nr; -static void autogroup_init (struct task_struct *init_task) +static void __init autogroup_init (struct task_struct *init_task) { autogroup_default.tg = &root_task_group; root_task_group.autogroup = &autogroup_default;