summaryrefslogtreecommitdiff
path: root/kernel/sched/autogroup.h
diff options
context:
space:
mode:
authorZhen Ni <nizhen@uniontech.com>2022-01-28 17:50:25 +0800
committerPeter Zijlstra <peterz@infradead.org>2022-02-02 13:11:37 +0100
commitc8eaf6ac76f40f6c59fc7d056e2e08c4a57ea9c7 (patch)
treeda3e3596be1253da7ec326611367490d4c7a808c /kernel/sched/autogroup.h
parent127b6429d235ab7c358223bbfd8a8b8d8cc799b6 (diff)
sched: move autogroup sysctls into its own file
move autogroup sysctls to autogroup.c and use the new register_sysctl_init() to register the sysctl interface. Signed-off-by: Zhen Ni <nizhen@uniontech.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20220128095025.8745-1-nizhen@uniontech.com
Diffstat (limited to 'kernel/sched/autogroup.h')
-rw-r--r--kernel/sched/autogroup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/autogroup.h b/kernel/sched/autogroup.h
index b96419974a1f..90fcbfdd70c3 100644
--- a/kernel/sched/autogroup.h
+++ b/kernel/sched/autogroup.h
@@ -27,6 +27,7 @@ extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
static inline struct task_group *
autogroup_task_group(struct task_struct *p, struct task_group *tg)
{
+ extern unsigned int sysctl_sched_autogroup_enabled;
int enabled = READ_ONCE(sysctl_sched_autogroup_enabled);
if (enabled && task_wants_autogroup(p, tg))