Skip to content

Commit f532376

Browse files
committed
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%[email protected]/) rm sentinel element from ctl_table arrays Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Valentin Schneider <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Signed-off-by: Joel Granados <[email protected]>
1 parent e822582 commit f532376

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

kernel/sched/autogroup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ static struct ctl_table sched_autogroup_sysctls[] = {
1919
.extra1 = SYSCTL_ZERO,
2020
.extra2 = SYSCTL_ONE,
2121
},
22-
{}
2322
};
2423

2524
static void __init sched_autogroup_sysctl_init(void)

kernel/sched/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4741,7 +4741,6 @@ static struct ctl_table sched_core_sysctls[] = {
47414741
.extra2 = SYSCTL_FOUR,
47424742
},
47434743
#endif /* CONFIG_NUMA_BALANCING */
4744-
{}
47454744
};
47464745
static int __init sched_core_sysctl_init(void)
47474746
{

kernel/sched/deadline.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ static struct ctl_table sched_dl_sysctls[] = {
4343
.proc_handler = proc_douintvec_minmax,
4444
.extra2 = (void *)&sysctl_sched_dl_period_max,
4545
},
46-
{}
4746
};
4847

4948
static int __init sched_dl_sysctl_init(void)

kernel/sched/fair.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static struct ctl_table sched_fair_sysctls[] = {
157157
.extra1 = SYSCTL_ZERO,
158158
},
159159
#endif /* CONFIG_NUMA_BALANCING */
160-
{}
161160
};
162161

163162
static int __init sched_fair_sysctl_init(void)

kernel/sched/rt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ static struct ctl_table sched_rt_sysctls[] = {
5656
.mode = 0644,
5757
.proc_handler = sched_rr_handler,
5858
},
59-
{}
6059
};
6160

6261
static int __init sched_rt_sysctl_init(void)

kernel/sched/topology.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ static struct ctl_table sched_energy_aware_sysctls[] = {
322322
.extra1 = SYSCTL_ZERO,
323323
.extra2 = SYSCTL_ONE,
324324
},
325-
{}
326325
};
327326

328327
static int __init sched_energy_aware_sysctl_init(void)

0 commit comments

Comments
 (0)