mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Michal Koutný" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: mkoutny@suse.com, "Peter Zijlstra (Intel)" <peterz@infradead.org>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: sched/core] sched/rt: Cleanup global RT bandwidth functions
Date: Wed, 08 Apr 2026 11:20:06 -0000	[thread overview]
Message-ID: <177564720610.801717.10070485706205589147.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260323-sched-rert_groups-v3-3-1e7d5ed6b249@suse.com>

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     985215804dcbf02ab675977e770708e3f084e9fc
Gitweb:        https://git.kernel.org/tip/985215804dcbf02ab675977e770708e3f084e9fc
Author:        Michal Koutný <mkoutny@suse.com>
AuthorDate:    Mon, 23 Mar 2026 13:39:39 +01:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Wed, 08 Apr 2026 13:11:44 +02:00

sched/rt: Cleanup global RT bandwidth functions

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 | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index e16d8f1..4ee8faf 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -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) {

      reply	other threads:[~2026-04-08 11:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23 12:39 [PATCH v3 0/3] sched/rt: Fix schedulable check with rt_group_sched=0 and cleanups Michal Koutný
2026-03-23 12:39 ` [PATCH v3 1/3] sched/rt: Skip group schedulable check with rt_group_sched=0 Michal Koutný
2026-04-08 11:20   ` [tip: sched/core] " tip-bot2 for Michal Koutný
2026-03-23 12:39 ` [PATCH v3 2/3] sched/rt: Move group schedulability check to sched_rt_global_validate() Michal Koutný
2026-04-08 11:20   ` [tip: sched/core] " tip-bot2 for Michal Koutný
2026-03-23 12:39 ` [PATCH v3 3/3] sched/rt: Cleanup global RT bandwidth functions Michal Koutný
2026-04-08 11:20   ` tip-bot2 for Michal Koutný [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=177564720610.801717.10070485706205589147.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mkoutny@suse.com \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®