sched: Move numa_balancing sysctls to its own file
The sysctl_numa_balancing_promote_rate_limit and sysctl_numa_balancing are part of sched, move them to its own file. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
committed by
Luis Chamberlain
parent
81e7cfa3a9
commit
0dff89c448
@ -4401,7 +4401,7 @@ static void reset_memory_tiering(void)
|
||||
}
|
||||
}
|
||||
|
||||
int sysctl_numa_balancing(struct ctl_table *table, int write,
|
||||
static int sysctl_numa_balancing(struct ctl_table *table, int write,
|
||||
void *buffer, size_t *lenp, loff_t *ppos)
|
||||
{
|
||||
struct ctl_table t;
|
||||
@ -4528,6 +4528,17 @@ static struct ctl_table sched_core_sysctls[] = {
|
||||
.proc_handler = sysctl_sched_uclamp_handler,
|
||||
},
|
||||
#endif /* CONFIG_UCLAMP_TASK */
|
||||
#ifdef CONFIG_NUMA_BALANCING
|
||||
{
|
||||
.procname = "numa_balancing",
|
||||
.data = NULL, /* filled in by handler */
|
||||
.maxlen = sizeof(unsigned int),
|
||||
.mode = 0644,
|
||||
.proc_handler = sysctl_numa_balancing,
|
||||
.extra1 = SYSCTL_ZERO,
|
||||
.extra2 = SYSCTL_FOUR,
|
||||
},
|
||||
#endif /* CONFIG_NUMA_BALANCING */
|
||||
{}
|
||||
};
|
||||
static int __init sched_core_sysctl_init(void)
|
||||
|
Reference in New Issue
Block a user