Commit f532376e authored by Joel Granados's avatar Joel Granados

scheduler: Remove the now superfluous sentinel elements from ctl_table array

This commit comes at the tail end of a greater effort to remove the
empty elements at the end of the ctl_table arrays (sentinels) which
will reduce the overall build time size of the kernel and run time
memory bloat by ~64 bytes per sentinel (further information Link :
https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)

rm sentinel element from ctl_table arrays
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarValentin Schneider <vschneid@redhat.com>
Reviewed-by: default avatarValentin Schneider <vschneid@redhat.com>
Signed-off-by: default avatarJoel Granados <j.granados@samsung.com>
parent e822582e
...@@ -19,7 +19,6 @@ static struct ctl_table sched_autogroup_sysctls[] = { ...@@ -19,7 +19,6 @@ static struct ctl_table sched_autogroup_sysctls[] = {
.extra1 = SYSCTL_ZERO, .extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE, .extra2 = SYSCTL_ONE,
}, },
{}
}; };
static void __init sched_autogroup_sysctl_init(void) static void __init sched_autogroup_sysctl_init(void)
......
...@@ -4741,7 +4741,6 @@ static struct ctl_table sched_core_sysctls[] = { ...@@ -4741,7 +4741,6 @@ static struct ctl_table sched_core_sysctls[] = {
.extra2 = SYSCTL_FOUR, .extra2 = SYSCTL_FOUR,
}, },
#endif /* CONFIG_NUMA_BALANCING */ #endif /* CONFIG_NUMA_BALANCING */
{}
}; };
static int __init sched_core_sysctl_init(void) static int __init sched_core_sysctl_init(void)
{ {
......
...@@ -43,7 +43,6 @@ static struct ctl_table sched_dl_sysctls[] = { ...@@ -43,7 +43,6 @@ static struct ctl_table sched_dl_sysctls[] = {
.proc_handler = proc_douintvec_minmax, .proc_handler = proc_douintvec_minmax,
.extra2 = (void *)&sysctl_sched_dl_period_max, .extra2 = (void *)&sysctl_sched_dl_period_max,
}, },
{}
}; };
static int __init sched_dl_sysctl_init(void) static int __init sched_dl_sysctl_init(void)
......
...@@ -157,7 +157,6 @@ static struct ctl_table sched_fair_sysctls[] = { ...@@ -157,7 +157,6 @@ static struct ctl_table sched_fair_sysctls[] = {
.extra1 = SYSCTL_ZERO, .extra1 = SYSCTL_ZERO,
}, },
#endif /* CONFIG_NUMA_BALANCING */ #endif /* CONFIG_NUMA_BALANCING */
{}
}; };
static int __init sched_fair_sysctl_init(void) static int __init sched_fair_sysctl_init(void)
......
...@@ -56,7 +56,6 @@ static struct ctl_table sched_rt_sysctls[] = { ...@@ -56,7 +56,6 @@ static struct ctl_table sched_rt_sysctls[] = {
.mode = 0644, .mode = 0644,
.proc_handler = sched_rr_handler, .proc_handler = sched_rr_handler,
}, },
{}
}; };
static int __init sched_rt_sysctl_init(void) static int __init sched_rt_sysctl_init(void)
......
...@@ -322,7 +322,6 @@ static struct ctl_table sched_energy_aware_sysctls[] = { ...@@ -322,7 +322,6 @@ static struct ctl_table sched_energy_aware_sysctls[] = {
.extra1 = SYSCTL_ZERO, .extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE, .extra2 = SYSCTL_ONE,
}, },
{}
}; };
static int __init sched_energy_aware_sysctl_init(void) static int __init sched_energy_aware_sysctl_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment