Commit f532376e authored by Joel Granados's avatar Joel Granados
Browse files

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ static struct ctl_table sched_autogroup_sysctls[] = {
		.extra1         = SYSCTL_ZERO,
		.extra2         = SYSCTL_ONE,
	},
	{}
};

static void __init sched_autogroup_sysctl_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -4741,7 +4741,6 @@ static struct ctl_table sched_core_sysctls[] = {
		.extra2		= SYSCTL_FOUR,
	},
#endif /* CONFIG_NUMA_BALANCING */
	{}
};
static int __init sched_core_sysctl_init(void)
{
+0 −1
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ static struct ctl_table sched_dl_sysctls[] = {
		.proc_handler   = proc_douintvec_minmax,
		.extra2         = (void *)&sysctl_sched_dl_period_max,
	},
	{}
};

static int __init sched_dl_sysctl_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -157,7 +157,6 @@ static struct ctl_table sched_fair_sysctls[] = {
		.extra1		= SYSCTL_ZERO,
	},
#endif /* CONFIG_NUMA_BALANCING */
	{}
};

static int __init sched_fair_sysctl_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -56,7 +56,6 @@ static struct ctl_table sched_rt_sysctls[] = {
		.mode           = 0644,
		.proc_handler   = sched_rr_handler,
	},
	{}
};

static int __init sched_rt_sysctl_init(void)
Loading