Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3953850imm; Mon, 17 Sep 2018 06:03:12 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda/w5iyd6M22QQdMjpQ1iqnLdfr9waG7JtfjIWE1xi1gIuJuS628kPgb1+fdNLvBf7eQxkZ X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr23495052pgv.387.1537189391937; Mon, 17 Sep 2018 06:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537189391; cv=none; d=google.com; s=arc-20160816; b=OnkOntovcuMIuX1ry/5tcAVqzblosKmkpcaoA5hnlwvADFeqep/+OpiNuStobqaHg7 /DYZ+DuLXPVI2XbCTlMPet6PCBIDHBZsYrAEMYnCGjo1X4zhqBmXlBfOXuFA9za46bMY bWGde7hJVYl7C5zrVnQg24sDTr+pHF3//rQ7UxMpD+oSl5HKVsq+QUevPgTnoElPwlmz MX14XZdxWR52ccoIJuVM2ZMtRlc/8Y7aDo6g1EvrQoylYXKi3Ys0TXN943cxGOp9Q5Hh tIW129j1R5nzrYTJkPbEMl9CaoXKKKH79k4xNfsnMMgsetqb9rMs/+dnApb3bqV4xxqn 0biA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=PVPZwRxDIf/HOpi9hZGEJsbPl6reT3p2rIDgP0KdI7Y=; b=fUC3MOLh4RA5CDD1Ygk/Rd17pwUYJFt+O+OTJ+9dRP840T7rGVRXsR/hZR6jLQbYuT TferYcYTnkJrhmM5Gr1276XlzmSbw8Xiom+AD0DMlO6B5dcGbBZNSoFBD7Dyk9Nwb0IU mr/tDQrXJxgwguyUT/GQAkb73wKlFGnEY3OvIhDWNg51Ma2hRCxxExu8df961zUCyGe3 o2hWRQYbh+aA3/6gVUuuADyDRYP4oF3GJnIJz7j8v/uZI4gYlxcvDoBHRfJpdvTuMOD1 bKlzdYfWyBVqYqOyyb+lUFcbsFicXiZGgZikLU13HTXyTn4gMUhEGqSWhPfB9P99xHSB HX3Q== 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 k1-v6si15099926pgj.522.2018.09.17.06.02.55; Mon, 17 Sep 2018 06:03:11 -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 S1728321AbeIQS2J (ORCPT + 99 others); Mon, 17 Sep 2018 14:28:09 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:54747 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbeIQS2J (ORCPT ); Mon, 17 Sep 2018 14:28:09 -0400 Received: from hsi-kbw-5-158-153-55.hsi19.kabel-badenwuerttemberg.de ([5.158.153.55] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g1t8v-0004ww-8P; Mon, 17 Sep 2018 15:00:45 +0200 Date: Mon, 17 Sep 2018 15:00:39 +0200 (CEST) From: Thomas Gleixner To: Arnd Bergmann cc: Linux Kernel Mailing List , Andy Lutomirski , the arch/x86 maintainers , Peter Zijlstra , matt@softrans.com.au, Stephen Boyd , John Stultz , Florian Weimer , "K. Y. Srinivasan" , vkuznets@redhat.com, devel@linuxdriverproject.org, virtualization@lists.linux-foundation.org, Paolo Bonzini , Juergen Gross , Deepa Dinamani Subject: Re: [patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support In-Reply-To: Message-ID: References: <20180914125006.349747096@linutronix.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Sep 2018, Arnd Bergmann wrote: > On Fri, Sep 14, 2018 at 2:52 PM Thomas Gleixner wrote: > A couple of architectures (s390, ia64, riscv, powerpc, arm64) > implement the vdso as assembler code at the moment, so they > won't be as easy to consolidate (other than outright replacing all > the code). > > The other five: > arch/x86/entry/vdso/vclock_gettime.c > arch/sparc/vdso/vclock_gettime.c > arch/nds32/kernel/vdso/gettimeofday.c > arch/mips/vdso/gettimeofday.c > arch/arm/vdso/vgettimeofday.c > > are basically all minor variations of the same code base and could be > consolidated to some degree. > Any suggestions here? Should we plan to do that consolitdation based on > your new version, or just add clock_gettime64 in arm32 and x86-32, and then > be done with it? The other ones will obviously still be fast for 32-bit time_t > and will have a working non-vdso sys_clock_getttime64(). In principle consolidating all those implementations should be possible to some extent and probably worthwhile. What's arch specific are the actual accessors to the hardware clocks. > I also wonder about clock_getres(): half the architectures seem to implement > it in vdso, but notably arm32 and x86 don't, and I had not expected it to be > performance critical given that the result is easily cached in user space. getres() is not really performance critical, but adding it does not create a huge problem either. Thanks, tglx