Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1019732ybl; Wed, 14 Aug 2019 09:27:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQaYdJbulYJ/EaBE74+m2BsKTLWMJYNAIbOmEKiHVsoSB3RjEd64u5fp8vXrdzhOoDaiRL X-Received: by 2002:a63:6f41:: with SMTP id k62mr81817pgc.32.1565800054982; Wed, 14 Aug 2019 09:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565800054; cv=none; d=google.com; s=arc-20160816; b=AWun1goJC7MQjLEyk3hNsWj0Bzo8Vi7k4+hB4sKwwDgXXU89GhWqR5+9RujyCqz7mE DPwE4tpwS6zNzQnUiZoDqGX0LdxRgbwDvWQRaBHt56oC+i2anDdj7EyfPSDpPRpL3xVD AqAeejnJ1sNhZtMBJxdA/5zpmJFE92VjXd+/H4hjSeTUMBOIm+Zkyc/9GWg6iCoshIRh 8aY1PsRUu1DOmeCFRi4/T0Xr+G7S1JzHE4fbEUnw125T0jVrki3DbioYY3btWMXKsXql //D3UI73I/tjw5Ks4q7t9WdkT1Dzs8h2unSMP6UmTLvJsvznZTNaLeS/WEldTh8lLKzL EEiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=wk1BGhHmb4/kblJSFVjhDOo5qYEAFJoaAqwstHJWCQ8=; b=NvGN3XjYfUrVQfvMslHjfvcWiVyWAiTNMzefvEdUaOjtAjl2Mt/eajj4KDeAi/b1Ux AqtdS3UO/vEIYxmwy2GN46exeMl4oLIbXktFHltlbGYmgeDYqy54ChIwf38/mOl3UJli Q/QJmP0bjE1roGbqiDf0GbvUvIXTyMqOtKKGZ3Ai5117ParIwNNFdYedKPzjH0hBbGFB WIe6TWktvc0Au4awsLjJkcUy5cJb+fQpm8uVjTqovc4gbusy6tLp5I/6wZ1pp2Xp8Ved SkZwAq1aPhyLZ/bXrsISjAk175fuSxfcryPpMpu0oo71ljj7R5+knBVUSTx1HQn1TzCL BK1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v31si156625plg.339.2019.08.14.09.27.18; Wed, 14 Aug 2019 09:27:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728051AbfHNQ0k convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Aug 2019 12:26:40 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:24467 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfHNQ0k (ORCPT ); Wed, 14 Aug 2019 12:26:40 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-70-13AhKNIkPQ24sx6GpjZKVg-1; Wed, 14 Aug 2019 17:26:37 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 14 Aug 2019 17:26:36 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 14 Aug 2019 17:26:36 +0100 From: David Laight To: "'Theodore Y. Ts'o'" , Linus Torvalds CC: Arnd Bergmann , Linux Kernel Mailing List , Thomas Gleixner , "John Stultz" , Alexandre Belloni , Stephen Boyd , "Florian Weimer" , "H. Peter Anvin" , Palmer Dabbelt , Alistair Francis , "GNU C Library" , Karel Zak , "Lennart Poettering" , OGAWA Hirofumi Subject: RE: New kernel interface for sys_tz and timewarp? Thread-Topic: New kernel interface for sys_tz and timewarp? Thread-Index: AQHVUjQ/cTmrC79R5ESb1PKLJmuvcqb60iGA Date: Wed, 14 Aug 2019 16:26:36 +0000 Message-ID: <342565604d704b6ebaf2e9ec28d3e109@AcuMS.aculab.com> References: <20190814000622.GB20365@mit.edu> In-Reply-To: <20190814000622.GB20365@mit.edu> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: 13AhKNIkPQ24sx6GpjZKVg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Theodore Y. Ts'o > Sent: 14 August 2019 01:06 > On Tue, Aug 13, 2019 at 10:30:34AM -0700, Linus Torvalds wrote: > > > > I suspect the only actual _valid_ use in the kernel for a time zone > > setting is likely for RTC clock setting, but even that isn't really > > "global", as much as "per RTC". > > As I recall (and I may or may not have been original for the original > sys_tz; it was many years ago, and my memories of 1992 are a bit > fuzzy) the only reason why we added it was because x86 systems that > were dual-booting with Windows had a RTC which ticked localtime, and > originally, the system time was fetched from the RTC in early boot, > and then when the timezone was set, the time would be warped so it > would be correct. x86 systems are very likely to have the RTC set by the bios config. In which case it will almost certainly get set to local time. It is certainly the default for windows installs - I don't even know if you have any other option. The 'real fun' (tm) happens when a dual boot system changes from winter to summer time. ISTR that it is quite easy to get both (or more) OS to change the RTC by an hour (I went home an hour early one year). Although the x86 RTC chip has a bit defined for 'summertime', nothing sets it (at least when I looked). David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)