mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
sched/autogroup: Fix sysctl move
Ivan reported /proc/sys/kernel/sched_autogroup_enabled went walk-about
and using the noautogroup command line parameter would result in a
boot error message.
Turns out the sysctl move placed the init function wrong.
Fixes: c8eaf6ac76
("sched: move autogroup sysctls into its own file")
Reported-by: Ivan Kozik <ivan@ludios.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Ivan Kozik <ivan@ludios.org>
Link: https://lkml.kernel.org/r/YpR2IqndgsyMzN00@worktop.programming.kicks-ass.net
This commit is contained in:
parent
7e284070ab
commit
82f586f923
1 changed files with 1 additions and 1 deletions
|
@ -36,6 +36,7 @@ void __init autogroup_init(struct task_struct *init_task)
|
||||||
kref_init(&autogroup_default.kref);
|
kref_init(&autogroup_default.kref);
|
||||||
init_rwsem(&autogroup_default.lock);
|
init_rwsem(&autogroup_default.lock);
|
||||||
init_task->signal->autogroup = &autogroup_default;
|
init_task->signal->autogroup = &autogroup_default;
|
||||||
|
sched_autogroup_sysctl_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void autogroup_free(struct task_group *tg)
|
void autogroup_free(struct task_group *tg)
|
||||||
|
@ -219,7 +220,6 @@ void sched_autogroup_exit(struct signal_struct *sig)
|
||||||
static int __init setup_autogroup(char *str)
|
static int __init setup_autogroup(char *str)
|
||||||
{
|
{
|
||||||
sysctl_sched_autogroup_enabled = 0;
|
sysctl_sched_autogroup_enabled = 0;
|
||||||
sched_autogroup_sysctl_init();
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue