From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E9D98408011; Tue, 26 May 2026 17:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779815653; cv=none; b=H7Em9Ai3O5zRVSEqJiTpv5O2HT4gPOvbaJ5CB7zjJOzz3JYIfzVDy4Neb3j1I4KTruHL+mDq01qOG+BFgSStOYU5wkL9J/02P4E7+KxRnRXXLdKGjYhT28+jphqncdRglr6z1s+OSs9jb+PcMetlGDqv6rjAKHeXWYB6GokufGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779815653; c=relaxed/simple; bh=STmBwqCS69f3H1B/WdQPyC9A5JSbEcuGaZP9yLFIjdk=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=uB0dw+Nsam4pheVEsQRvG4NCF7/wOtS81eAsV+EnDT707i3FPmqGHfBJfsDAaee4lgTA2YnMAFpSqRHfpZmRQpHsY1wpdJYxlVGCtQ1NMIplXmP9eIV01sdGXDwIbXGHVntGuqGaG1B8r0iml3v1WNty5fwIdZgfmfizl0GLJus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eCFKYpyZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eCFKYpyZ" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 5FE351F000E9; Tue, 26 May 2026 17:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779815651; bh=rk/n5DCog2RqWoJ0i1Irxgkuc/EgZJSjx162WFCBbzc=; h=Date:From:To:Cc:Subject:References; b=eCFKYpyZucjpAEYv4wwh7vyYhZ3u+nHy0uIc5m+7G5LfPuCIqEKgu2exTK1BifpVz 3SJKUnDDcaWvZkztVHKcbAg4zFpeuMAhimkMMQB43Tjw/ZzM83zBsvJJYrITTQKyP2 pbbe359SHMnJPVu5Np6y9mqJi5McS1/wPtT4v4vmAvmfy4u9D47qjdAoUEF449Y5No qRgdd7PzqIDK0VdNurHYovJBEqUvPegjnTbs54kNgMje6DoDMQBbxhGPfRK9GK6Dvl ubYLQaai2lis6h36Q8G1CKgGnbwlOnQHg6V3uo4P54CzyoN2SePMUwoVoeiu/UWFTF +LlkgJ0lHhL6w== Date: Tue, 26 May 2026 19:14:08 +0200 Message-ID: <20260526171223.300914258@kernel.org> User-Agent: quilt/0.68 From: Thomas Gleixner To: LKML Cc: David Woodhouse , Miroslav Lichvar , John Stultz , Stephen Boyd , Anna-Maria Behnsen , Frederic Weisbecker , thomas.weissschuh@linutronix.de, Arthur Kiyanovski , Rodolfo Giometti , Vincent Donnefort , Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev, Oliver Upton , Richard Cochran , netdev@vger.kernel.org, Takashi Iwai , Miri Korenblit , Johannes Berg , Jacob Keller , Tony Nguyen , Saeed Mahameed , Peter Hilber , "Michael S. Tsirkin" , virtualization@lists.linux.dev, linux-wireless@vger.kernel.org, linux-sound@vger.kernel.org Subject: [patch 08/24] timekeeping: Remove system_time_snapshot::real/boot References: <20260526165826.392227559@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 All users are converted over to ktime_get_snapshot_id() and system_time_snapshot::sys. Remove the leftovers. Signed-off-by: Thomas Gleixner --- include/linux/timekeeping.h | 4 ---- kernel/time/timekeeping.c | 8 -------- 2 files changed, 12 deletions(-) --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -280,8 +280,6 @@ static inline bool ktime_get_aux_ts64(cl * a selected CLOCK_* and the clocksource counter value * @cycles: Clocksource counter value to produce the system times * @sys: The system time of the selected CLOCK ID - * @real: Realtime system time - * @boot: Boot time * @raw: Monotonic raw system time * @cs_id: Clocksource ID * @clock_was_set_seq: The sequence number of clock-was-set events @@ -291,8 +289,6 @@ static inline bool ktime_get_aux_ts64(cl struct system_time_snapshot { u64 cycles; ktime_t sys; - ktime_t real; - ktime_t boot; ktime_t raw; enum clocksource_ids cs_id; unsigned int clock_was_set_seq; --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1196,8 +1196,6 @@ bool ktime_get_snapshot_id(struct system struct timekeeper *tk; struct tk_data *tkd; unsigned int seq; - ktime_t base_real; - ktime_t base_boot; /* Invalidate the snapshot for all failure cases */ systime_snapshot->valid = false; @@ -1239,18 +1237,12 @@ bool ktime_get_snapshot_id(struct system offs_sys = *offs; base_raw = tk->tkr_raw.base; - /* Kept around until the callers are fixed up */ - base_real = ktime_add(base_sys, tk_core.timekeeper.offs_real); - base_boot = ktime_add(base_sys, tk_core.timekeeper.offs_boot); - nsec_sys = timekeeping_cycles_to_ns(&tk->tkr_mono, now); nsec_raw = timekeeping_cycles_to_ns(&tk->tkr_raw, now); } while (read_seqcount_retry(&tkd->seq, seq)); systime_snapshot->cycles = now; systime_snapshot->sys = ktime_add_ns(base_sys, offs_sys + nsec_sys); - systime_snapshot->real = ktime_add_ns(base_real, nsec_sys); - systime_snapshot->boot = ktime_add_ns(base_boot, nsec_sys); systime_snapshot->raw = ktime_add_ns(base_raw, nsec_raw); /*