[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DD00278C0@AcuExch.aculab.com>
Date: Wed, 21 Jun 2017 09:26:51 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Russell King - ARM Linux' <linux@...linux.org.uk>,
Benjamin Gaignard <benjamin.gaignard@...aro.org>
CC: Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
Baruch Siach <baruch@...s.co.il>,
"patches@...nsource.wolfsonmicro.com"
<patches@...nsource.wolfsonmicro.com>,
Linus Walleij <linus.walleij@...aro.org>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
Thierry Reding <thierry.reding@...il.com>,
Pavel Machek <pavel@....cz>,
Thomas Gleixner <tglx@...utronix.de>,
"x86@...nel.org" <x86@...nel.org>,
Jonathan Hunter <jonathanh@...dia.com>,
Chen-Yu Tsai <wens@...e.org>, Ingo Molnar <mingo@...hat.com>,
Sylvain Lemieux <slemieux.tyco@...il.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Len Brown <len.brown@...el.com>,
"linaro-kernel@...ts.linaro.org" <linaro-kernel@...ts.linaro.org>,
"Jason Cooper" <jason@...edaemon.net>,
"rtc-linux@...glegroups.com" <rtc-linux@...glegroups.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
Hans Ulli Kroll <ulli.kroll@...glemail.com>,
"adi-buildroot-devel@...ts.sourceforge.net"
<adi-buildroot-devel@...ts.sourceforge.net>,
Vladimir Zapolskiy <vz@...ia.com>,
John Stultz <john.stultz@...aro.org>,
Gregory Clement <gregory.clement@...e-electrons.com>,
Michael Chan <michael.chan@...adcom.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Alessandro Zummo <a.zummo@...ertech.it>,
Barry Song <baohua@...nel.org>,
Support Opensource <Support.Opensource@...semi.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Steve Twiss <stwiss.opensource@...semi.com>,
Maxime Ripard <maxime.ripard@...e-electrons.com>
Subject: RE: [PATCH 00/51] rtc: stop using rtc deprecated functions
From: Russell King - ARM Linux
> Sent: 20 June 2017 22:16
..
> Consider that at the moment, we define the 32-bit RTC representation to
> start at a well known epoch. We _could_ decide that when it wraps to
> 0x80000000 seconds, we'll define the lower 0x40000000 seconds to mean
> dates in the future - and keep rolling that forward each time we cross
> another 0x40000000 seconds. Unless someone invents a real time machine,
> we shouldn't need to set a modern RTC back to 1970.
True, just treating the value as unsigned gives another 67 years.
If a 32bit RTC is programmed with the low 32bits of the 64bit 'seconds
since 1970' the kernel should have no real difficulty sorting out the
high bits from other available information.
Problems with things like the x86 bios setting the rtc to stupid values
are another matter.
ISTR the rtc chip has a bit for 'summertime' that is never set, on a
multi-os system you can get multiple summer time changes.
David
Powered by blists - more mailing lists