Skip to content

Commit bc1e02c

Browse files
committed
Merge tag 'sched-urgent-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Thomas Gleixner: "Fix the fallout of sysctl code move which placed the init function wrong" * tag 'sched-urgent-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/autogroup: Fix sysctl move
2 parents fa11c28 + 82f586f commit bc1e02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/autogroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ void __init autogroup_init(struct task_struct *init_task)
3636
kref_init(&autogroup_default.kref);
3737
init_rwsem(&autogroup_default.lock);
3838
init_task->signal->autogroup = &autogroup_default;
39+
sched_autogroup_sysctl_init();
3940
}
4041

4142
void autogroup_free(struct task_group *tg)
@@ -219,7 +220,6 @@ void sched_autogroup_exit(struct signal_struct *sig)
219220
static int __init setup_autogroup(char *str)
220221
{
221222
sysctl_sched_autogroup_enabled = 0;
222-
sched_autogroup_sysctl_init();
223223

224224
return 1;
225225
}

0 commit comments

Comments
 (0)