From nobody Tue Apr 7 16:32:13 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 3A8A03C555C; Thu, 12 Mar 2026 11:25:35 +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=1773314736; cv=none; b=K7+Wgl26JNLe4HoEZ3ZAFwTsZmNRZ96OsvrXOFwRsWWeCyQbbcukmjLgSeC2NAkO8a3yiO3GYcNTLO/iS25I6cQV69KUwZDzq9XBE9Tx3pEbqbXZfbT7RPMJvZCnAC+qqK9S51QBpbmKnJNeGdk3ACD7GHk2zF5pTAuE/clVIAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773314736; c=relaxed/simple; bh=r1TRd80sKc6oaAsDBF4ob+33a7n7nG/Zkgs9bAshT18=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=SwuWDZVjf0ceK99AwE1/fcl4u835PXQ0p6PHCWIEK00ATfIiLh5fzaQhE2NiCZSTFUVqyNU2xPv+Tx5UlBtqM4KX5Td6J4f6At3zYe3HiNhYgMtJAxKFL8SdTwafql1esRX59BdmKMz1AB2RLcautdWoQJRkok2DfIdp9zUDrcE= 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=irFrSkYa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/P6OSFAd; 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="irFrSkYa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/P6OSFAd" Date: Thu, 12 Mar 2026 11:25:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773314733; 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=e/+4Oe5la+GR/bqbRemJfVu6aFgjeFnBgW5aFxjkJ/g=; b=irFrSkYaLaC1b6+af85V28O5pUfqVY2nYZWmPmXJZKWrg+VgpTV7U1N1IAf2gzquQtwyC8 8tLq28k3XjJqpmUvStmffNsWOve2HBGxKNQRrjQepAfcx8CcN0kbKM6+xNur2ApZMAIacA 6JhZhPde3wyn10GEc+pCNLfGf4dxVq0HOcnRt09175L9TtFa8x/HcRh8SEgfUYvzyrekc1 w1qw23ylugzTX53PETsTQnuQsfSimUHMbizzX62Hv9Ac47g8gHs0DwnsJD6gwyl1kpLw/7 xPW2ZgrmnfsAUF4z/XZbeajfVuufP6AU9nUnyKYaW9Nihp2Rfr6pnCGpcqnudQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773314733; 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=e/+4Oe5la+GR/bqbRemJfVu6aFgjeFnBgW5aFxjkJ/g=; b=/P6OSFAd7nc1tyva6jDxMJkWluIUwwlfEZ9467teQvSz0lmrFgm7V//aLXEJH0SG1qpJBx rvlcugyL3hAS8+DA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Drop unnecessary pointer indirection in hrtimer_expire_entry event Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260311-hrtimer-cleanups-v1-9-095357392669@linutronix.de> References: <20260311-hrtimer-cleanups-v1-9-095357392669@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177331473238.1647592.1407395480953103655.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 timers/core branch of tip: Commit-ID: bd803783dfa7ddd5e1d44a6abfeee26fdc3a2db7 Gitweb: https://git.kernel.org/tip/bd803783dfa7ddd5e1d44a6abfeee26fd= c3a2db7 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Wed, 11 Mar 2026 11:15:18 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 12 Mar 2026 12:15:55 +01:00 hrtimer: Drop unnecessary pointer indirection in hrtimer_expire_entry event This pointer indirection is a remnant from when ktime_t was a struct, today it is pointless. Drop the pointer indirection. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-9-095357392669@= linutronix.de --- include/trace/events/timer.h | 7 +++---- kernel/time/hrtimer.c | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/trace/events/timer.h b/include/trace/events/timer.h index a54613f..07cbb98 100644 --- a/include/trace/events/timer.h +++ b/include/trace/events/timer.h @@ -254,14 +254,13 @@ TRACE_EVENT(hrtimer_start, /** * hrtimer_expire_entry - called immediately before the hrtimer callback * @hrtimer: pointer to struct hrtimer - * @now: pointer to variable which contains current time of the - * timers base. + * @now: variable which contains current time of the timers base. * * Allows to determine the timer latency. */ TRACE_EVENT(hrtimer_expire_entry, =20 - TP_PROTO(struct hrtimer *hrtimer, ktime_t *now), + TP_PROTO(struct hrtimer *hrtimer, ktime_t now), =20 TP_ARGS(hrtimer, now), =20 @@ -273,7 +272,7 @@ TRACE_EVENT(hrtimer_expire_entry, =20 TP_fast_assign( __entry->hrtimer =3D hrtimer; - __entry->now =3D *now; + __entry->now =3D now; __entry->function =3D ACCESS_PRIVATE(hrtimer, function); ), =20 diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index c7e7d3a..a71e2ca 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1884,7 +1884,7 @@ EXPORT_SYMBOL_GPL(hrtimer_active); * __run_hrtimer() invocations. */ static void __run_hrtimer(struct hrtimer_cpu_base *cpu_base, struct hrtime= r_clock_base *base, - struct hrtimer *timer, ktime_t *now, unsigned long flags) + struct hrtimer *timer, ktime_t now, unsigned long flags) __must_hold(&cpu_base->lock) { enum hrtimer_restart (*fn)(struct hrtimer *); @@ -1989,7 +1989,7 @@ static void __hrtimer_run_queues(struct hrtimer_cpu_b= ase *cpu_base, ktime_t now, if (basenow < hrtimer_get_softexpires(timer)) break; =20 - __run_hrtimer(cpu_base, base, timer, &basenow, flags); + __run_hrtimer(cpu_base, base, timer, basenow, flags); if (active_mask =3D=3D HRTIMER_ACTIVE_SOFT) hrtimer_sync_wait_running(cpu_base, flags); }