From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761879AbdEWLhN convert rfc822-to-8bit (ORCPT ); Tue, 23 May 2017 07:37:13 -0400 Received: from smtp-out4.electric.net ([192.162.216.186]:52772 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760462AbdEWLhL (ORCPT ); Tue, 23 May 2017 07:37:11 -0400 From: David Laight To: "'Thomas Gleixner'" , Arnd Bergmann CC: 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/BtCAgALEhCA= Date: Tue, 23 May 2017 11:36:38 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFFFD8B2@AcuExch.aculab.com> References: <20170516114812.10660-1-hch@lst.de> <20170516155132.GA1494@lst.de> 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: 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). OTOH how much conditional code is there for the 'abs' argument. And is there any code that doesn't pass a constant? Certainly worth a separate timer_start_abs(timer, wall_time) function since you can't correctly map a wall_time timer to a jiffies one. David