From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: "Thomas Weißschuh (Schneider Electric)"
<thomas.weissschuh@linutronix.de>
Cc: John Stultz <jstultz@google.com>,
Thomas Gleixner <tglx@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Miroslav Lichvar <mlichvar@redhat.com>,
Cassio Neri <cassio.neri@gmail.com>,
linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org
Subject: Re: [PATCH v3 3/4] rtc: lib: Implement rtc_time64_to_tm() in terms of time64_to_tm()
Date: Tue, 1 Dec 2026 16:10:00 +0100 [thread overview]
Message-ID: <202612011510006ee51fd9@mail.local> (raw)
In-Reply-To: <20261201100019-fbb75e1d-0447-44b9-bcd4-b46c0df1a64e@linutronix.de>
On 01/12/2026 10:05:36+0100, Thomas Weißschuh (Schneider Electric) wrote:
> On Mon, Nov 30, 2026 at 09:22:32PM +0100, Alexandre Belloni wrote:
> > On 30/11/2026 15:20:49+0100, Thomas Weißschuh (Schneider Electric) wrote:
> > > The core timekeeping code already provides a function to convert seconds
> > > since the epoch to a 'struct tm'. This can be reused for a the
> > > 'struct rtc_time' conversion.
> > >
> > > time64_to_tm() can handle a larger range of dates. It is also
> > > 20% slower, but this function is not a hot-path anyways.
> > > On the other hand this saves ~600 bytes of .text.
> > >
> >
> > While not in the hot path, this is actually time sensitive which is why
> > I always hesitated doing this change.
>
> time64_to_tm() has been optimized by Cassio recently.
> So the absolute performance should be much better than the original
> rtc_time64_to_tm().
>
> > I guess I'll apply both RTC patches in my tree.
>
> The full series has already been picked up through the tip tree.
Was that so urgent that this had to be applied right away?
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-12-01 15:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 14:20 [PATCH v3 0/4] time: time64_to_tm() cleanups Thomas Weißschuh (Schneider Electric)
2026-11-30 14:20 ` [PATCH v3 1/4] time: Avoid 64-bit by 64-bit division in time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-11-30 15:12 ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-11-30 14:20 ` [PATCH v3 2/4] time: test: Avoid unnecessary divisions in time64_to_tm() test Thomas Weißschuh (Schneider Electric)
2026-11-30 15:12 ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-11-30 14:20 ` [PATCH v3 3/4] rtc: lib: Implement rtc_time64_to_tm() in terms of time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-11-30 15:12 ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-11-30 20:22 ` [PATCH v3 3/4] " Alexandre Belloni
2026-12-01 9:05 ` Thomas Weißschuh (Schneider Electric)
2026-12-01 15:04 ` Alexandre Belloni
2026-12-01 16:08 ` Thomas Weißschuh
2026-12-01 15:10 ` Alexandre Belloni [this message]
2026-12-01 15:58 ` Thomas Weißschuh (Schneider Electric)
2026-11-30 14:20 ` [PATCH v3 4/4] rtc: test: Remove test_rtc_lib.c Thomas Weißschuh (Schneider Electric)
2026-11-30 15:12 ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-11-30 14:25 ` [PATCH v3 0/4] time: time64_to_tm() cleanups sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202612011510006ee51fd9@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=cassio.neri@gmail.com \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mlichvar@redhat.com \
--cc=sboyd@kernel.org \
--cc=tglx@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.