Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp557038ybl; Wed, 14 Aug 2019 02:18:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsM4omXfOzpNOjTLWsCIMzITlDUqyY+l24UAOlIQMR/JtU5NV23siae/sTjyFZ9CMgixG0 X-Received: by 2002:a65:4808:: with SMTP id h8mr20984651pgs.22.1565774319509; Wed, 14 Aug 2019 02:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565774319; cv=none; d=google.com; s=arc-20160816; b=tuzh6reojkJ3y24bpHQzlaLAvRMgqw3zNjEuK2oIyTRKLu8AVjUcGWDLIwiB5nClUV hjrLAl9TI15aQP+nHnVZ250CrzazDcCl2dVZSpOBEGZyd39UiT4B8tbbaAYld3wu0pRw xW9RscQOCwum4qS3Hc3P1QM3r5QfnBNL4LbEMj/W4xWt/ZMrZzaTNQZlDbb7DZy7W31f qNkmkbsA0h/qGyRM8MZ2m2rh1Cvu8Y++Wr9esC6iVAIH9nbp4oYJe8LqteWu7+LiZva7 0fS0helPJGYe7mrxFFwhfCfqeNOS6D487TYHbd7QozS1po6KYwkeSEKSq/+au7r5aefZ 0Dxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6oizItD7h+BRZp99z62LNWO8E7SdkswuLJjD9NMaRbc=; b=wnXNF36qfApR10DSPPWdvAq9voZQ9JVlNP0rXU2ziQXkElCCoFNPv4ajswvBkUegS7 lJzbt1RUgfO/nhi0yujNRWnZJng0dMlPsbTPYzEGDYbRJaNg7OImrVUTTohv9U+WyXsC m6qDpU3WUJvhFw8jyicp0Opgyeb4CTQBsenoWnHJCvZNEQc9Ngo76BhqNuc46JNPOjZl oXYis+jr2Sygq8mnOvYJpwfT8mxsqPYHQA2ONlmQ7HlyYX+boE25K/t2GK3i7CERrVzl z6GLpnMTHOnR6MNP4uWBFJGh/Znm+VaimuxnDnyuj1Tf7x2WpOplnREsp7T2xXknnAlz C1Ig== 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 w11si70848395pgk.384.2019.08.14.02.18.21; Wed, 14 Aug 2019 02:18:39 -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 S1726411AbfHNJRs (ORCPT + 99 others); Wed, 14 Aug 2019 05:17:48 -0400 Received: from gardel.0pointer.net ([85.214.157.71]:34924 "EHLO gardel.0pointer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbfHNJRr (ORCPT ); Wed, 14 Aug 2019 05:17:47 -0400 X-Greylist: delayed 489 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Aug 2019 05:17:47 EDT Received: from gardel-login.0pointer.net (gardel.0pointer.net [85.214.157.71]) by gardel.0pointer.net (Postfix) with ESMTP id EF34CE80937; Wed, 14 Aug 2019 11:09:36 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 950C2160102; Wed, 14 Aug 2019 11:09:36 +0200 (CEST) Date: Wed, 14 Aug 2019 11:09:36 +0200 From: Lennart Poettering To: Arnd Bergmann Cc: "Theodore Y. Ts'o" , Linus Torvalds , 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 , OGAWA Hirofumi Subject: Re: New kernel interface for sys_tz and timewarp? Message-ID: <20190814090936.GB10516@gardel-login> References: <20190814000622.GB20365@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mi, 14.08.19 10:31, Arnd Bergmann (arnd@arndb.de) wrote: > - glibc stops passing the caller timezone argument to the kernel > - the distro kernel disables CONFIG_RTC_HCTOSYS, > CONFIG_RTC_SYSTOHC and CONFIG_GENERIC_CMOS_UPDATE What's the benefit of letting userspace do this? It sounds a lot more fragile to leave this syncing to userspace if the kernel can do this trivially on its own. IIRC there are uses in kernel that use CLOCK_REALTIME already before userspace starts. e.g. iirc networking generally prefers CLOCK_REALTIME timestamps over CLOCK_MONOTONIC timestamps (i.e. SO_TIMESTAMP and friends are still CLOCK_REALTIME only so far, unless I am missing something). If the kernel comes up with a CLOCK_REALTIME that starts at 0 this is pretty annoying I figure... Hence, so far I suggested to distros to continue turning on the options above, and let the kernel do this on its own without involving userspace in that. Lennart -- Lennart Poettering, Berlin