From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754231Ab1EBILG (ORCPT ); Mon, 2 May 2011 04:11:06 -0400 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:52087 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752034Ab1EBILD (ORCPT ); Mon, 2 May 2011 04:11:03 -0400 From: Alexander Shishkin To: Thomas Gleixner , Kay Sievers Cc: Andrew Morton , John Stultz , Chris Friesen , "Kirill A. Shutemov" , LKML , Peter Zijlstra , Davide Libenzi Subject: Re: [RFC][PATCH 1/4] clock_rtoffset: new syscall In-Reply-To: References: <1303901023-11568-1-git-send-email-virtuoso@slind.org> <1303937755.1065.8.camel@zag> User-Agent: Notmuch/0.5-83-g74bc93f (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Mon, 02 May 2011 11:10:59 +0300 Message-ID: <87y62pmsj0.fsf@shisha.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Apr 2011 19:32:13 +0200 (CEST), Thomas Gleixner wrote: > Alexander, > > On Wed, 27 Apr 2011, Kay Sievers wrote: > > On Wed, 2011-04-27 at 16:02 +0200, Thomas Gleixner wrote: > > > On Wed, 27 Apr 2011, Alexander Shishkin wrote: > > > The completely untested patch below should solve the same problem in a > > > sane way. Restricted to timerfd, but that really should be sufficient. > > > > > Subject: timerfd: Allow timers to be cancelled when clock was set > > > From: Thomas Gleixner > > > Date: Wed, 27 Apr 2011 14:16:42 +0200 > > > > Seems to work fine for me here for the weird "cron timer" case, or the > > simple "desktop clock" use-case -- where we want to rely on the timer to > > let the process sleep as long as possible, but wake it up to recalculate > > the next wakeup in case anything has changed in the meantime. > > is that sufficient to solve your problems as well? Yes, it looks to be. Thanks, -- Alex