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
Unified · Split
| @@ -36,6 +36,7 @@ void __init autogroup_init(struct task_struct *init_task) · 35 unmodified lines | ||
| 36 | 36 | kref_init(&autogroup_default.kref); |
| 37 | 37 | init_rwsem(&autogroup_default.lock); |
| 38 | 38 | init_task->signal->autogroup = &autogroup_default; |
| 39 | + sched_autogroup_sysctl_init(); | |
| 39 | 40 | } |
| 40 | 41 | |
| 41 | 42 | void autogroup_free(struct task_group *tg) |
| @@ -219,7 +220,6 @@ void sched_autogroup_exit(struct signal_struct *sig) · 177 unmodified lines | ||
| 219 | 220 | static int __init setup_autogroup(char *str) |
| 220 | 221 | { |
| 221 | 222 | sysctl_sched_autogroup_enabled = 0; |
| 222 | − sched_autogroup_sysctl_init(); | |
| 223 | 223 | |
| 224 | 224 | return 1; |
| 225 | 225 | } |