From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796137806; b=f8+kE59khacOYycvlAch5pd9ns3Z3jETtQIyNwQ5vyyplLGQ5ujFE+fzBCsfywIFWYL0 XXzJLquX6Je2aCTIry3gHoaTMRA8ELe90M+VkA5tZ1eAs46UyVyrvZRuELmHsdtiZqRWG 2mBH/4eun47guQl4Jen4wlVkAd3TaeJQ8Q0ycDi2TnGHlQWWznzGQXlKDYSAQj5MqXzyN JCaDucLq1US8KAIZTSgop8li8vRKeOrErk49BM+mFzTeADzxFsKn5SF9X4aM7B/Dr/mCQ Iw1z7UGJAMrJ1iL3S3OcOpIJn2VLfJAMljbMgkm3TD4pjLxYOgVDXcP1jWCyZCUFubQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796137806; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-Last-TLS-Session-Version; bh=8XC2OGYvJOC9GjaLUztWd+UntExZp7B3/KT5RCsbHe0=; b=XT3Llk6O3DvlGAT+9nor2t8XtYwAmuUthtIR2HFphcq+Ffiopgl2byeGFgji5ZvxuVCV m2CzotrlDrkXMx1PNywVZmsb/ah0/c592v3iMsGv64HPIcnwbZNhMl5J8Ksu+8b67trD+ 3yJIyG7AxDprkYsSIjtqT5Wmi4uEn96gSm0uWU6Kx1qPqYl3RsyDHvFypBB4ZJXL4YTy5 flf2Uqg60kZEx3DDPMuPRcc+0BVzypvh8Go08xI8n/TgdVWZVt0b0VP6oWYVoh+KGEoS+ o6qqPNVcYUMfbV7JCxMlW/v+OU//a8mYMP2+YCFQAk+nMO99oFCfI+IYQBChzOrx6Cg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mo2FQBFT; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEA8D606A31A; Tue, 1 Dec 2026 15:10:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AEA8D606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mo2FQBFT Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 18B08C2B9CB; Tue, 1 Dec 2026 15:10:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 6FAC1603CB; Tue, 1 Dec 2026 15:10:03 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4CC2211EA265A; Tue, 01 Dec 2026 16:10:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796137802; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8XC2OGYvJOC9GjaLUztWd+UntExZp7B3/KT5RCsbHe0=; b=mo2FQBFTV8m+vZQMwRjnP8EUoJ+5NO7tXgmIhv26mGXh1KDwajxx639o6jcoamprYiIPkZ AN/rSRClVfKqdLTJqtyl9omkhwO5QrD1NW6Ke5aHDTI+fTQKXdv1KnDs4WgAAdnFQxONh7 fv7YOIOPSvan0Q9mOATOQv5j/bHuvV+prEeCHz75ZZumRnZ5KWqnRECqPkEGGbouONmufZ +98rJgmJF7alfdjKT1RQZIHc1wWqkhZYWQbfQ56aW6wbWZzj7NL1+RAeBj50F61/HFVInp AYIz6tPJXDg0doDJj7rHh8qh4yyDauA8vGH3QCNE8nVnnOPA8Y4ZFdV7ac0hGw== Date: Tue, 1 Dec 2026 16:10:00 +0100 From: Alexandre Belloni To: Thomas =?iso-8859-1?Q?Wei=DFschuh_=28Schneider_Electric=29?= Cc: John Stultz , Thomas Gleixner , Stephen Boyd , Miroslav Lichvar , Cassio Neri , 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() Message-ID: <202612011510006ee51fd9@mail.local> References: <20261130-time-time64-to-tm-v3-0-f68748ad4118@linutronix.de> <20261130-time-time64-to-tm-v3-3-f68748ad4118@linutronix.de> <20261130202232ce193cec@mail.local> <20261201100019-fbb75e1d-0447-44b9-bcd4-b46c0df1a64e@linutronix.de> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261201100019-fbb75e1d-0447-44b9-bcd4-b46c0df1a64e@linutronix.de> X-Last-TLS-Session-Version: TLSv1.3 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