From nobody Mon Feb 9 02:13:08 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 6EEBB3161BC for ; Wed, 7 Jan 2026 10:37:16 +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=1767782238; cv=none; b=aYWpxmXNZqYm4fFFZ/p/++1zsSPO71EPjySU0DN17SWRjN++BUJsSvhkM6quZS09wwG7q7cFLok9PJDytvQOQVspTjakRGiVOTOagNFRidT+xeFcUe/Pf1lKAQXWPeU+VIqODb3MKa4v//mMkZ05ZbaUHkjfQyX4XwOA/WhENbI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767782238; c=relaxed/simple; bh=FlWir83W/8iC4TYUdzAO3ITxv/ihVSxoAUfAYvCgqa4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UEPoQpYFR4KR4NUf/hKPmYlap3E53pd6rHtQSsaAcp/XyK56C6ADGRv23SBvEexlBfWqPOEqvb5JnDdNLUsHZcatPMcdsiH+ELnhUjTfwF1C4WYp7HnhRStxbUlqUe3I/kv5trmzP8UNoSiDq2wyVA31+jKlPSRV11WC8ays/cE= 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=em9lUfER; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=z4ieengn; 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="em9lUfER"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="z4ieengn" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767782228; h=from:from: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=16e4t33OB3P6wwK1bSXCRdLHfwsME0NaPmlBMORfvSo=; b=em9lUfER1LMSOp4cYjTlOBJHf7xuVOlQyC9guSeGBusC/QrP0QNwbYNbDWar3GE+aqOasB NWYGzW5qq6a9vGcf/Q7cAFsWZu2xPtECDofXvxuvhGRNQrpwP73fVfZrz3FMXMeudYEdmq glUT0y7zSpkSLL6REgHP0qkMMr5kgHlHJI4i9nZ8iZyAjcPmTjbmy2uTvXie41Ga/7s0p/ ysrWBgVJc51gM36I41TArjOY2JjJzrYVyAxjGX3jO/raGAiIp7d/tA5tmzrgjH+K28XFKM vKIwQTWilgtnmHznkAplOGQvZlsU7VeImaEJHlamGfSlXGXrOhrVaqiYTzJnFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767782228; h=from:from: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=16e4t33OB3P6wwK1bSXCRdLHfwsME0NaPmlBMORfvSo=; b=z4ieengnSoc2+MiuD6a2tOTDH8ytutOePubabx0OUysBE8VbnUyVlNSickpRHQ99lYP5Ta LtGkxDj6uoTyCWBA== Date: Wed, 07 Jan 2026 11:36:58 +0100 Subject: [PATCH 3/3] hrtimer: Drop _tv64() helpers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260107-hrtimer-header-cleanup-v1-3-1a698ef0ddae@linutronix.de> References: <20260107-hrtimer-header-cleanup-v1-0-1a698ef0ddae@linutronix.de> In-Reply-To: <20260107-hrtimer-header-cleanup-v1-0-1a698ef0ddae@linutronix.de> To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767782219; l=2830; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=FlWir83W/8iC4TYUdzAO3ITxv/ihVSxoAUfAYvCgqa4=; b=Xjc7SRn009v+lBP/Z2eZ5AKAhNuxolmr4L8XhimPKdi20dsNZ388wfdII388GK9dCAHojKlje CJLbLlZou1HDaaw3/XGh91xEziHXiGRbJNjqJMIoyWM/PUg6dt1uLlB X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Since ktime_t has become an alias to s64, these helpers are unnecessary. Migrate the few remaining users to the regular helpers and remove the now dead code. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/linux/hrtimer.h | 15 --------------- kernel/time/hrtimer.c | 6 +++--- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 2cf1bf65b225..eb2d3d9dd064 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -112,12 +112,6 @@ static inline void hrtimer_set_expires_range_ns(struct= hrtimer *timer, ktime_t t timer->node.expires =3D ktime_add_safe(time, ns_to_ktime(delta)); } =20 -static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv6= 4) -{ - timer->node.expires =3D tv64; - timer->_softexpires =3D tv64; -} - static inline void hrtimer_add_expires(struct hrtimer *timer, ktime_t time) { timer->node.expires =3D ktime_add_safe(timer->node.expires, time); @@ -140,15 +134,6 @@ static inline ktime_t hrtimer_get_softexpires(const st= ruct hrtimer *timer) return timer->_softexpires; } =20 -static inline s64 hrtimer_get_expires_tv64(const struct hrtimer *timer) -{ - return timer->node.expires; -} -static inline s64 hrtimer_get_softexpires_tv64(const struct hrtimer *timer) -{ - return timer->_softexpires; -} - static inline s64 hrtimer_get_expires_ns(const struct hrtimer *timer) { return ktime_to_ns(timer->node.expires); diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 2d319f8aff14..d0ab2e9e3f30 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -814,7 +814,7 @@ static void hrtimer_reprogram(struct hrtimer *timer, bo= ol reprogram) struct hrtimer_clock_base *base =3D timer->base; ktime_t expires =3D ktime_sub(hrtimer_get_expires(timer), base->offset); =20 - WARN_ON_ONCE(hrtimer_get_expires_tv64(timer) < 0); + WARN_ON_ONCE(hrtimer_get_expires(timer) < 0); =20 /* * CLOCK_REALTIME timer might be requested with an absolute @@ -1061,7 +1061,7 @@ u64 hrtimer_forward(struct hrtimer *timer, ktime_t no= w, ktime_t interval) =20 orun =3D ktime_divns(delta, incr); hrtimer_add_expires_ns(timer, incr * orun); - if (hrtimer_get_expires_tv64(timer) > now) + if (hrtimer_get_expires(timer) > now) return orun; /* * This (and the ktime_add() below) is the @@ -1843,7 +1843,7 @@ static void __hrtimer_run_queues(struct hrtimer_cpu_b= ase *cpu_base, ktime_t now, * are right-of a not yet expired timer, because that * timer will have to trigger a wakeup anyway. */ - if (basenow < hrtimer_get_softexpires_tv64(timer)) + if (basenow < hrtimer_get_softexpires(timer)) break; =20 __run_hrtimer(cpu_base, base, timer, &basenow, flags); --=20 2.52.0