mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Liang Hao" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Liang Hao <haohlliang@gmail.com>,
	"Peter Zijlstra (Intel)" <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: sched/core] sched/deadline: check start_dl_timer expiry with ktime_before()
Date: Wed, 02 Sep 2026 08:33:01 -0000	[thread overview]
Message-ID: <178833798138.3717435.18023684512809336597.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260816032643.44969-1-haohlliang@gmail.com>

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

Commit-ID:     f549101187c875c2016072cadcb909d228532ae8
Gitweb:        https://git.kernel.org/tip/f549101187c875c2016072cadcb909d228532ae8
Author:        Liang Hao <haohlliang@gmail.com>
AuthorDate:    Sun, 16 Aug 2026 11:26:43 +08:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Wed, 02 Sep 2026 10:28:24 +02:00

sched/deadline: check start_dl_timer expiry with ktime_before()

Replace ktime_us_delta() < 0 with ktime_before() so the past-expiry
test uses the same resolution as act/now.

Signed-off-by: Liang Hao <haohlliang@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/20260816032643.44969-1-haohlliang@gmail.com
---
 kernel/sched/deadline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 0663c00..de6a361 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1097,7 +1097,7 @@ static int start_dl_timer(struct sched_dl_entity *dl_se)
 	 * chosen as the deadline is too small, don't even try to
 	 * start the timer in the past!
 	 */
-	if (ktime_us_delta(act, now) < 0)
+	if (ktime_before(act, now))
 		return 0;
 
 	/*

      parent reply	other threads:[~2026-09-02  8:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-16  3:26 [PATCH] " Liang Hao
2026-08-18 11:55 ` Juri Lelli
2026-09-02  7:54 ` [tip: sched/core] " tip-bot2 for Liang Hao
2026-09-02  8:33 ` tip-bot2 for Liang Hao [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=178833798138.3717435.18023684512809336597.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=haohlliang@gmail.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --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®