From nobody Mon Jun 8 03:20:28 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 7C9FF3DCDB2; Tue, 2 Jun 2026 09:46:17 +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=1780393578; cv=none; b=ZsmjZ9wFKd5OlACLi8g51qdjIfL7pVPpTsxX0RdYoEHFedgFUSi0Lh2M9CDoQWGLsYBPTnJ5KMmfb70tEmheGESsFiQ6xf/F9QVzKAOtJ14wYbCZsPz6AOmxu31PkZ+CNLVtThSrDzqOnBM76qCBEkCDaR1NmgEgMs6R5gm5PjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393578; c=relaxed/simple; bh=LVhTYSo8v4KPq47TZvJvwnMPdaDAtXNKaGIWW1od+1E=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Hs9iOOVFXo+CPIxTXNC/BzqZEbssY53uYA65du+wS3g1CodsMObkReOKPdJ8nlKzQnr0+pwjrhnCTGi688EM7Xe7vQ4vzGQ/va2F87xhZxKeVOtMgbDU5WExzzp79iDbo6hLhi1pPS3L1Owjy6sNNy2KpuSa2BUidiXtQ6pwUdc= 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=ifXOq4tH; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TzgfQEsv; 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="ifXOq4tH"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TzgfQEsv" Date: Tue, 02 Jun 2026 09:46:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393576; 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=6jYvLaKYB9QsZWoE1Ff0l2UflESbBxu65pMuw8ktg7o=; b=ifXOq4tHZwd1weriSS2ZDSKYhK+iRvgjwTNY9v3vYdl1uMCZI67bqbb3+kN9LCLqueYg8P ke9SSzMNtRrw7YFFbuoBmy7r5MIjBUH5I4An0A+FIYvThDpzXQrdeDg4WAURK11sITRZlA 9HfmUpO98r5ov/Yhj67UQz/Oi4P2Ms4X+rcjOvbONO870yGNMB8pjooSooY65A3JAneziz BbXhcqwyiFHidnmIq3GINEWFJSTzqzP20o0mnx4hq+TIk7QZmamvkilTVI2BVO45E4DQwh 6Ii2tn4M3e02XPAQ/hyN3uhoW5lEwerDS5Ai2rm9x9p2/uAbQ+BkSQmCA7kJSQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393576; 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=6jYvLaKYB9QsZWoE1Ff0l2UflESbBxu65pMuw8ktg7o=; b=TzgfQEsvVraLCTeB5JlN2UakWkdgcSbzI9nM5bkcLm5kFbT+MqInRGTF5cVXorkAe+Oezr 2n7lUS0EKFDs0QBg== 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: Convert to ktime_get_snapshot_id() Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , thomas.weissschuh@linutronix.de, Jacob Keller , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.123410250@kernel.org> References: <20260529195557.123410250@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178039357467.2140988.8400133175176524447.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: d5becddf8a0f18bcc18129efa086530b5263c6b4 Gitweb: https://git.kernel.org/tip/d5becddf8a0f18bcc18129efa086530b5= 263c6b4 Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:04 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:58 +02:00 pps: Convert to ktime_get_snapshot_id() ktime_get_snapshot() resolves to ktime_get_snapshot_id(CLOCK_REALTIME). Make it obvious in the code and convert the readout to use the snapshot::systime and monoraw fields instead of snapshot::real and raw, which aregoing away. Similar to the PPS generators, avoid the more expensive snapshot when CONFIG_NTP_PPS is disabled. 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 Link: https://patch.msgid.link/20260529195557.123410250@kernel.org --- include/linux/pps_kernel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/pps_kernel.h b/include/linux/pps_kernel.h index aab0aeb..9f088c9 100644 --- a/include/linux/pps_kernel.h +++ b/include/linux/pps_kernel.h @@ -99,12 +99,14 @@ static inline void timespec_to_pps_ktime(struct pps_kti= me *kt, =20 static inline void pps_get_ts(struct pps_event_time *ts) { +#ifdef CONFIG_NTP_PPS struct system_time_snapshot snap; =20 - ktime_get_snapshot(&snap); - ts->ts_real =3D ktime_to_timespec64(snap.real); -#ifdef CONFIG_NTP_PPS - ts->ts_raw =3D ktime_to_timespec64(snap.raw); + ktime_get_snapshot_id(CLOCK_REALTIME, &snap); + ts->ts_real =3D ktime_to_timespec64(snap.systime); + ts->ts_raw =3D ktime_to_timespec64(snap.monoraw); +#else + ktime_get_real_ts64(&ts->ts_real); #endif } =20