From nobody Sat Sep 26 11:01:51 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 687F13A380E; Wed, 2 Sep 2026 07:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788335688; cv=none; b=Z07l3KANkZTu2E/Mk+fzvdgiahpQz+BSO5xaF7aql3S1533odXJi0iX0ro9Ccaw5gGTl4smWi9WMacuUUTJciSf1gSwSSPnfxKWeCAv4asjkd49v3tLYz4O+EJ0GXCw6iGs7pMbpqlSqGUT4wkaGFhcpZUO01yj8aJLY122KDPU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788335688; c=relaxed/simple; bh=CM4sIGWXPinPAyzCgb9XUAEj5f18nL90ITWgumKrdzc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=GDqj21DaLVGXbABVdFUlLAvII1TNJhgjSkqQUueogCy0aSvvLezOawkexxahDAAqMyOb67PwbetfhG+E4cMJQHFTOmmvDcGnwNAG5FRupEXu5zYKR02jYLl8KWT7Ui7daRWKMWJ96zib3O6H8plEt+TNih3FCfNgPsurnj3sbL0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=j4ZZz0NX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Bk1XZgvs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j4ZZz0NX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Bk1XZgvs" Date: Wed, 02 Sep 2026 07:54:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788335683; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FEGe/DxBDPSPZQpZnMyiLA7SbOFkZd8BK5a+uao7Thw=; b=j4ZZz0NXkw/WQ165DPpHppCH0evQEc6/7fB8r/3WPR4S74sKcw5FCHOSKLBtExmH1RKxs7 DSAqpJRvIR7nOobKeWAmCSRdLBlAf/jzMv4gajoRERHnLKwPa/2aTzCKxtFFzdaTc4qPnr FF6kMzWI8eyPA8haLN+ux6Ws/gqUWkf8hb4VxXgfxF61+RSjfKuXlSAQnut4HPmb+eqeOj 2Lw0j3GNsHHO8Lobpn49DpSOb/eyLTmSxH7LcuaOsEt0qisHQtnJ7NHKD7zZLmfZ5KfUgL d4zoxgdc7h1lOUGb/S/lI2+CZU+cISo2UvpDHPeDcbKfSGY0M3MswT0t25rKhA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788335683; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FEGe/DxBDPSPZQpZnMyiLA7SbOFkZd8BK5a+uao7Thw=; b=Bk1XZgvshDQ8XoxeEY8HnB1RuhNtjaA4YFb/6L+I6tNTbfYfdQ+R7PztOc10lgkM5JuEo0 sWCeKTcpVnYaZwDw== From: "tip-bot2 for Liang Hao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/deadline: check start_dl_timer expiry with ktime_before() Cc: Liang Hao , "Peter Zijlstra (Intel)" , Juri Lelli , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260816032643.44969-1-haohlliang@gmail.com> References: <20260816032643.44969-1-haohlliang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178833568221.3717435.17050080680044868044.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 6c10af7c54434768127d80fac8a00b1c0f553344 Gitweb: https://git.kernel.org/tip/6c10af7c54434768127d80fac8a00b1c0= f553344 Author: Liang Hao AuthorDate: Sun, 16 Aug 2026 11:26:43 +08:00 Committer: Peter Zijlstra CommitterDate: Wed, 02 Sep 2026 09:37:25 +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 Signed-off-by: Peter Zijlstra (Intel) Acked-by: Juri Lelli 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; =20 /*