From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.linutronix.de ([62.245.132.108]:38016 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932727AbaFLITg (ORCPT ); Thu, 12 Jun 2014 04:19:36 -0400 Date: Thu, 12 Jun 2014 10:19:08 +0200 (CEST) From: Thomas Gleixner To: Johannes Berg cc: LKML , John Stultz , Peter Zijlstra , Ingo Molnar , "John W. Linville" , linux-wireless@vger.kernel.org Subject: Re: [patch 12/13] net: mac80211: Remove silly timespec dance In-Reply-To: <1402555774.4224.1.camel@jlt4.sipsolutions.net> Message-ID: (sfid-20140612_102006_317288_423F6E67) References: <20140611234024.103571777@linutronix.de> <20140611234607.683770899@linutronix.de> <1402555774.4224.1.camel@jlt4.sipsolutions.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 12 Jun 2014, Johannes Berg wrote: > On Wed, 2014-06-11 at 23:59 +0000, Thomas Gleixner wrote: > > > + msrmnt = ktime_to_ms(net_timedelta(skb_arv)); > > This is probably more of a question about net_timedelta(), but is > ktime_get_real() really appropriate for duration measurements? Isn't > that non-monotonic? Well, it's monotonic, but might be affected by settimeofday(). Thanks, tglx