From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id D1FA41A0D2B for ; Wed, 22 Apr 2015 20:11:24 +1000 (AEST) Received: by widdi4 with SMTP id di4so171354914wid.0 for ; Wed, 22 Apr 2015 03:11:21 -0700 (PDT) Date: Wed, 22 Apr 2015 12:11:14 +0200 From: Richard Cochran To: Thomas Gleixner Subject: Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure Message-ID: <20150422101114.GA5527@localhost.localdomain> References: <1429509459-17068-1-git-send-email-baolin.wang@linaro.org> <3231171.5TrYVVBLh4@wuerfel> <2819798.f0KhjY3UAe@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: pang.xunlei@linaro.org, Peter Zijlstra , Heiko Carstens , Paul Mackerras , cl@linux.com, Ingo Molnar , heenasirwani@gmail.com, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, y2038@lists.linaro.org, rafael.j.wysocki@intel.com, ahh@google.com, Frederic Weisbecker , "Paul E. McKenney" , pjt@google.com, riel@redhat.com, Arnd Bergmann , Tejun Heo , John Stultz , rth@twiddle.net, Baolin Wang , gregkh@linuxfoundation.org, LKML , netdev@vger.kernel.org, Martin Schwidefsky , linux390@de.ibm.com, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Apr 22, 2015 at 10:45:23AM +0200, Thomas Gleixner wrote: > So we could save one translation step if we implement new syscalls > which have a scalar nsec interface instead of the timespec/timeval > cruft and let user space do the translation to whatever it wants. +1 > I personally would welcome such an interface as it makes user space > programming simpler. Just (re)arming a periodic nanosleep based on > absolute expiry time is horrible stupid today: Jup. > Thoughts? Current user space example: The linuxptp programs are doing ns64 to timespec conversions to call into the kernel, which then does timespec to ns64 to talk to the hardware. I would bet that most (all?) use cases are better served with 64 bit nanosecond system calls. Thanks, Richard