From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967422AbdEWMvm convert rfc822-to-8bit (ORCPT ); Tue, 23 May 2017 08:51:42 -0400 Received: from smtp-out6.electric.net ([192.162.217.194]:54455 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbdEWMvl (ORCPT ); Tue, 23 May 2017 08:51:41 -0400 From: David Laight To: "'Thomas Gleixner'" CC: Arnd Bergmann , linux-s390 , Mark Gross , Linux Kernel Mailing List , Tejun Heo , linuxppc-dev , Christoph Hellwig Subject: RE: RFC: better timer interface Thread-Topic: RFC: better timer interface Thread-Index: AQHS0lW6uG7dVDC/vU6NWV3mQEk/8qH/BtCAgALEhCD///cngIAAHuQg Date: Tue, 23 May 2017 12:51:30 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFFFD977@AcuExch.aculab.com> References: <20170516114812.10660-1-hch@lst.de> <20170516155132.GA1494@lst.de> <063D6719AE5E284EB5DD2968C1650D6DCFFFD8B2@AcuExch.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Outbound-IP: 156.67.243.126 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuExch.aculab.com X-TLS: TLSv1:AES128-SHA:128 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner > Sent: 23 May 2017 12:59 > On Tue, 23 May 2017, David Laight wrote: > > > From: Thomas Gleixner > > > Sent: 21 May 2017 19:15 > > ... > > > > timer_start(timer, ms, abs) > > > > > > I'm not even sure, whether we need absolute timer wheel timers at > > > all, because most use cases are relative to now. > > > > Posix requires absolute timers for some userspace calls > > (annoying because the code often wants relative). > > Posix is completely irrelevant here. These timers are purely kernel > internal. Somehow pthread_cond_timedwait() has to be implemented. Doing so without kernel timers that use absolute 'wall clock' time is tricky. David