diff options
Diffstat (limited to 'kernel/sched/auto_group.c')
-rw-r--r-- | kernel/sched/auto_group.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/sched/auto_group.c b/kernel/sched/auto_group.c index eae160dd669d..750ed601ddf7 100644 --- a/kernel/sched/auto_group.c +++ b/kernel/sched/auto_group.c | |||
@@ -1,5 +1,3 @@ | |||
1 | #ifdef CONFIG_SCHED_AUTOGROUP | ||
2 | |||
3 | #include "sched.h" | 1 | #include "sched.h" |
4 | 2 | ||
5 | #include <linux/proc_fs.h> | 3 | #include <linux/proc_fs.h> |
@@ -141,7 +139,7 @@ autogroup_move_group(struct task_struct *p, struct autogroup *ag) | |||
141 | 139 | ||
142 | p->signal->autogroup = autogroup_kref_get(ag); | 140 | p->signal->autogroup = autogroup_kref_get(ag); |
143 | 141 | ||
144 | if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled)) | 142 | if (!READ_ONCE(sysctl_sched_autogroup_enabled)) |
145 | goto out; | 143 | goto out; |
146 | 144 | ||
147 | for_each_thread(p, t) | 145 | for_each_thread(p, t) |
@@ -249,5 +247,3 @@ int autogroup_path(struct task_group *tg, char *buf, int buflen) | |||
249 | return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); | 247 | return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); |
250 | } | 248 | } |
251 | #endif /* CONFIG_SCHED_DEBUG */ | 249 | #endif /* CONFIG_SCHED_DEBUG */ |
252 | |||
253 | #endif /* CONFIG_SCHED_AUTOGROUP */ | ||