From nobody Mon Jun 8 03:20:29 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 90F283DD53E; Tue, 2 Jun 2026 09:46:18 +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=1780393579; cv=none; b=D5zUMHHzR2AXnbzSPyIrjlmQv228dCJID7v5kWvNo4NQwWXufi9tnjOfTZky4hddimap3Yuaxttjf3VfDOIpOAX44d0G0gvh9DLLT5a51WhF/0wBEFEqpELeyExgjwEniyVf3d17ZWUJxXcHdbuWw6WbVCkUfvjh0Ibn6GwUKfo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393579; c=relaxed/simple; bh=rZyuAYKCZg8C2qAlqJUthbomsjlsf5oi29uLl36MoWs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=b6vIxzkNOnVGyhVYVYrD3f+oli1MwITuj5OYBB9yOP2fFLmYRUIcZpdsie8z6k/wjtwo9DorqrlhrEctvnR5v9ZL8t9Kv0Uz/fkd7BZahldaVY3W7jcrlJLnHi2wVnHpevIjXXgvvFIOEb7F7b4WAUOkc6qO3UKG5SSfX9TBgXY= 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=FfG/fyTk; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GKLJ4IhD; 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="FfG/fyTk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GKLJ4IhD" Date: Tue, 02 Jun 2026 09:46:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393577; 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=hEXR1YVL6eIRS1VrByzL0YKOZPMQJHDDlUUHFSFPjxA=; b=FfG/fyTkcohXGYHJvocJryOwkX/NKnPnyoRJ2RfxdaHywPsEADXUxOV9Ew/PwYveoXcNlH Za8IRZGFProUYnAnZxL/AvzP6AIYasIrRMm7jC4cNYOYFwmhbU+8VG8NMiMkqzvOYy7gsd BmTPF9Gk+desirOuYrpbLQ+lYWUDBYtylHMFmwHTpJJvJBob01iRGL+56vsJfIijz3GIxt Hazp+hILcF/FFFdx5oXOqwlPEZtIP7qxhCGAx0B5qXEMoK6BY0ZAKHmcairA15cIQ23ZGy 6qcnLfVMOFgp696ZqG1ef54RdysvgZm4VTTQt5iZQyy7JzC/v5iJ/NZKVD9f9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393577; 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=hEXR1YVL6eIRS1VrByzL0YKOZPMQJHDDlUUHFSFPjxA=; b=GKLJ4IhDDBcd6xnc2D1+bixXhVyx1JCDr3y1a9VcYx4YZl4YuHFC+NKGnZzvIbodwwEDTQ DBFw5j8QPcSTlfAw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/ptp] pps: generators: Use ktime_get_real_ts64() instead of ktime_get_snapshot() Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , thomas.weissschuh@linutronix.de, Jacob Keller , Rodolfo Giometti , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.074439049@kernel.org> References: <20260529195557.074439049@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178039357590.2140988.3576291354118280603.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/ptp branch of tip: Commit-ID: fe1159fe49b40f73de88d2c29200c813952e061f Gitweb: https://git.kernel.org/tip/fe1159fe49b40f73de88d2c29200c8139= 52e061f Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 21:59:59 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:58 +02:00 pps: generators: Use ktime_get_real_ts64() instead of ktime_get_snapshot() There is no reason to use the more complex ktime_get_snapshot() for retrieving CLOCK_REALTIME. Just use ktime_get_real_ts64(), which avoids the extra timespec64 conversion as a bonus. No functional change intended. Signed-off-by: Thomas Gleixner Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Thomas Wei=C3=9Fschuh Reviewed-by: Jacob Keller Acked-by: Rodolfo Giometti Link: https://patch.msgid.link/20260529195557.074439049@kernel.org --- drivers/pps/generators/pps_gen-dummy.c | 6 +----- drivers/pps/generators/pps_gen_tio.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/pps/generators/pps_gen-dummy.c b/drivers/pps/generator= s/pps_gen-dummy.c index 547fa7f..a439554 100644 --- a/drivers/pps/generators/pps_gen-dummy.c +++ b/drivers/pps/generators/pps_gen-dummy.c @@ -39,11 +39,7 @@ static void pps_gen_ktimer_event(struct timer_list *unus= ed) static int pps_gen_dummy_get_time(struct pps_gen_device *pps_gen, struct timespec64 *time) { - struct system_time_snapshot snap; - - ktime_get_snapshot(&snap); - *time =3D ktime_to_timespec64(snap.real); - + ktime_get_real_ts64(time); return 0; } =20 diff --git a/drivers/pps/generators/pps_gen_tio.c b/drivers/pps/generators/= pps_gen_tio.c index de00a85..9483d12 100644 --- a/drivers/pps/generators/pps_gen_tio.c +++ b/drivers/pps/generators/pps_gen_tio.c @@ -189,11 +189,7 @@ static int pps_tio_gen_enable(struct pps_gen_device *p= ps_gen, bool enable) static int pps_tio_get_time(struct pps_gen_device *pps_gen, struct timespec64 *time) { - struct system_time_snapshot snap; - - ktime_get_snapshot(&snap); - *time =3D ktime_to_timespec64(snap.real); - + ktime_get_real_ts64(time); return 0; } =20