scheduler: Remove the now superfluous sentinel elements from ctl_table array
authorJoel Granados <j.granados@samsung.com>
Tue, 27 Jun 2023 13:30:21 +0000 (15:30 +0200)
committerJoel Granados <j.granados@samsung.com>
Wed, 24 Apr 2024 07:43:54 +0000 (09:43 +0200)
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: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Signed-off-by: Joel Granados <j.granados@samsung.com>
kernel/sched/autogroup.c
kernel/sched/core.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/rt.c
kernel/sched/topology.c

index 991fc90025357964edf8d64a361a843e926160c1..db68a964e34e26f6f6e9943d24fefafcfe79398e 100644 (file)
@@ -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)
index 7019a40457a6dafd14803896d3cb68a1e26bb2d4..7ce76620a308a75ad41ea96e459106dd50b00f85 100644 (file)
@@ -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)
 {
index a04a436af8cc4ece2b391d08032ce5f2f6e5425c..c75d1307d86d584545dadfb098c9a451d1a94998 100644 (file)
@@ -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)
index 03be0d1330a6b22336c91cd4cfeae7fd82838692..4ac2cf7a918ebbf0b9cc4ca0d70e8df00796b36c 100644 (file)
@@ -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)
index 3261b067b67e2c8550e7ba45476adbcb7349882e..aa4c1c874fa4471e75047b46e9dbffeec52f0aaa 100644 (file)
@@ -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)
index 99ea5986038ce44997627fee1e01f6e36bef1b26..42c22648d124ff96c9a1f5a390e795dd836af52a 100644 (file)
@@ -322,7 +322,6 @@ static struct ctl_table sched_energy_aware_sysctls[] = {
                .extra1         = SYSCTL_ZERO,
                .extra2         = SYSCTL_ONE,
        },
-       {}
 };
 
 static int __init sched_energy_aware_sysctl_init(void)