sched/rt: Remove empty sched_rt_do_global() helper
PATCH 1/1 sched/rt: Remove empty sched_rt_do_global() helper
sched_rt_do_global() is an empty helper that has no effect on RT bandwidth sysctl handling.
Historically, sched_rt_do_global() was responsible for managing RT throttling parameters before the introduction of the fair server. Since commit 5f6bd380c7bd ("sched/rt: Remove default bandwidth control"), the function became obsolete, but the empty helper and its call site were retained.
Remove the unused function and its call site to simplify the sysctl update path.
No functional change intended.
--- kernel/sched/rt.c | 5 ----- 1 file changed, 5 deletions(-)
kernel/sched/rt.c +0 -5
@@ -2862,10 +2862,6 @@ static int sched_rt_global_validate(void)return 0 ; } -static void sched_rt_do_global (void ) -{ -} -static int sched_rt_handler (const struct ctl_table *table,int write,void *buffer,size_t *lenp,loff_t *ppos) {
@@ -2893,7 +2889,6 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buffif (ret) goto undo; -sched_rt_do_global ();sched_dl_do_global (); }if (0 ) {
Signature · 1 line
2.43.0
K Prateek Nayak
reviewer(+Steve)
Hello Zhan,
Quoted 9 lines · Zhan Xusheng
sched_rt_do_global()is an empty helper that has no effect on RT bandwidth sysctl handling.Historically,
sched_rt_do_global()was responsible for managing RT throttling parameters before the introduction of the fair server. Since commit5f6bd380c7bd("sched/rt: Remove default bandwidth control"), the function became obsolete, but the empty helper and its call site were retained.
Quoted 7 lines
Remove the unused function and its call site to simplify the sysctl update path.
No functional change intended.
Reviewed-by K Prateek Nayak <[email protected]>Signed-off-by Zhan Xusheng <[email protected]>
I believe there is another competing cleanup by Michal at
https://lore.kernel.org/lkml/[email protected]/
which is doing a little bit more.
I'll leave it to Peter / Steve to pick which one they prefer.
Signature · 2 lines
Thanks and Regards, Prateek
Quoted 1 line · On Wed, 11 Feb 2026 13:55:12 +0530 K Prateek Nayak <[email protected]>…
I'll leave it to Peter / Steve to pick which one they prefer.
It should go through Peter.
-- Steve