Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp119979ybl; Tue, 13 Aug 2019 17:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr45ZrifanvYwMxsPVK8u9cyPJ5D6V0HYGY4aeH13ydrcyVA2bMClizwSsIMDkatw02JpS X-Received: by 2002:a63:2006:: with SMTP id g6mr35864387pgg.287.1565741428182; Tue, 13 Aug 2019 17:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565741428; cv=none; d=google.com; s=arc-20160816; b=RdTpWDOffN4Xfll/+RAsxBr2uIyiE4ZSuRhyDTL8z2MtGA4S9QMWPHVDNfjBBl5Eml UJTOso2cLCrvWj3pEJIjvoyHFLU92qr5f/rxPm/VyrB3T4L1wLNIKMQpzKIt+18oyojp O3bifBvnSLh6H11LRENcSfXtQBEr4Wr6E30z8IVaJjQFRQaDA6se6m+vrzNnc6zYSg68 kqi6C9CiahQB3sO0uxOcbc1vfQ3k/FbfOwiXkBjVeX2oToKiY7IExESNof+RHCcfpzp1 hmmWQvCTEGcEK8TleRKrCyxn29lLm1L4g9ohqHSl4nDahzBF2/3nwYM7uwZmWvoRR39y 7Aow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=7QtQu0y/VQPba8/FxlgLebuMxHSBsPhbfjZVoB5t118=; b=JVrzrnrVpVYRRMK2fKkTOVUYXbsuChMEvsaqtunhfqz0roI/C/QScDapSQrXNPFpsH ZwZSVFHzD31UPxt+6Z22z3nqkbrs+O4OCkCiTRFZMQMoxNe9tMGDUJXNr8V3V2EMBSQK lYLyFoVktf2ZGVQL6ofssI+3XtWNmHx5yQGsQqWB+TWRd4SagHwbpf5motY638elbdUI /YjOa9d3uPVcrHStcs/dwnY90NjH/kWAGD0h4+GpoRLMiawlKFizsWv0jR4kIhjI7V6S fs4kSFz4K659KLobRq1CS1lXlRbfWNz1ikPhhSlROs/olFmdSUS3qDNW/jRmMFxyN2TA 8GvQ== 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 v13si34941230pgr.103.2019.08.13.17.10.12; Tue, 13 Aug 2019 17:10:28 -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 S1726602AbfHNAHT (ORCPT + 99 others); Tue, 13 Aug 2019 20:07:19 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:35470 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726102AbfHNAHT (ORCPT ); Tue, 13 Aug 2019 20:07:19 -0400 Received: from callcc.thunk.org (guestnat-104-133-9-109.corp.google.com [104.133.9.109] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x7E06OWr006647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Aug 2019 20:06:26 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 2267D4218EF; Tue, 13 Aug 2019 20:06:23 -0400 (EDT) Date: Tue, 13 Aug 2019 20:06:23 -0400 From: "Theodore Y. Ts'o" To: 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? Message-ID: <20190814000622.GB20365@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Linus Torvalds , 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 References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Trying to use this for anything else is probably a bad idea, and in a world where we can have initrd's and reading the RTC gets done by userspace as opposed to kernel, it probably doesn't make any sence to keep it. Cheers, - Ted