Skip to contentSkip to conversation

sched/rt: Remove empty sched_rt_do_global() helper

PATCH In review Zhan Xusheng 3 participants 3 messages Feb 11 – Feb 12 Scheduler

lore
Share & tools
lore
#0 lore raw

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
index a7680477fa6f..f49b75d36428 100644
@@ -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 *buff
 		if (ret)
 			goto undo;
 
-		sched_rt_do_global();
 		sched_dl_do_global();
 	}
 	if (0) {
Signature · 1 line
2.43.0
#1 lore raw

(+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 commit 5f6bd380c7bd ("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.

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