Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934577AbbDVKL1 (ORCPT ); Wed, 22 Apr 2015 06:11:27 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:36276 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753291AbbDVKLX (ORCPT ); Wed, 22 Apr 2015 06:11:23 -0400 Date: Wed, 22 Apr 2015 12:11:14 +0200 From: Richard Cochran To: Thomas Gleixner Cc: Arnd Bergmann , y2038@lists.linaro.org, Baolin Wang , pang.xunlei@linaro.org, Peter Zijlstra , Benjamin Herrenschmidt , Heiko Carstens , Paul Mackerras , cl@linux.com, heenasirwani@gmail.com, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, mpe@ellerman.id.au, rafael.j.wysocki@intel.com, ahh@google.com, Frederic Weisbecker , pjt@google.com, riel@redhat.com, Martin Schwidefsky , John Stultz , rth@twiddle.net, gregkh@linuxfoundation.org, LKML , netdev@vger.kernel.org, Tejun Heo , linux390@de.ibm.com, linuxppc-dev@lists.ozlabs.org, Ingo Molnar , "Paul E. McKenney" 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 27 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/