]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched/rt: Cleanup global RT bandwidth functions
authorMichal Koutný <mkoutny@suse.com>
Mon, 23 Mar 2026 12:39:39 +0000 (13:39 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 8 Apr 2026 11:11:44 +0000 (13:11 +0200)
The commit 5f6bd380c7bdb ("sched/rt: Remove default bandwidth control")
and followup changes made a few of the functions unnecessary, drop them
for simplicity.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260323-sched-rert_groups-v3-3-1e7d5ed6b249@suse.com
kernel/sched/rt.c

index e16d8f1b4aa20146376f3df5c3761c77382f1e05..4ee8faf01441a3cf9a88d0ac5ee9efb4e5ff6d4a 100644 (file)
@@ -2829,13 +2829,6 @@ long sched_group_rt_period(struct task_group *tg)
        return rt_period_us;
 }
 
-#ifdef CONFIG_SYSCTL
-static int sched_rt_global_constraints(void)
-{
-       return 0;
-}
-#endif /* CONFIG_SYSCTL */
-
 int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk)
 {
        /* Don't accept real-time tasks when there is no way for them to run */
@@ -2845,14 +2838,6 @@ int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk)
        return 1;
 }
 
-#else /* !CONFIG_RT_GROUP_SCHED: */
-
-#ifdef CONFIG_SYSCTL
-static int sched_rt_global_constraints(void)
-{
-       return 0;
-}
-#endif /* CONFIG_SYSCTL */
 #endif /* !CONFIG_RT_GROUP_SCHED */
 
 #ifdef CONFIG_SYSCTL
@@ -2874,10 +2859,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)
 {
@@ -2901,11 +2882,6 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buff
                if (ret)
                        goto undo;
 
-               ret = sched_rt_global_constraints();
-               if (ret)
-                       goto undo;
-
-               sched_rt_do_global();
                sched_dl_do_global();
        }
        if (0) {