Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751821AbbHQVES (ORCPT ); Mon, 17 Aug 2015 17:04:18 -0400 Received: from lists.s-osg.org ([54.187.51.154]:58156 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbbHQVER (ORCPT ); Mon, 17 Aug 2015 17:04:17 -0400 Message-ID: <55D24C4F.8000707@osg.samsung.com> Date: Mon, 17 Aug 2015 15:04:15 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: John Stultz , lkml CC: Prarit Bhargava , Daniel Bristot de Oliveira , Richard Cochran , Jan Kara , Jiri Bohac , Thomas Gleixner , Ingo Molnar Subject: Re: [PATCH 1/9] timer_list: Add the base offset so remaining nsecs are accurate for non monotonic timers References: <1439844063-7957-1-git-send-email-john.stultz@linaro.org> <1439844063-7957-2-git-send-email-john.stultz@linaro.org> <55D24BAA.2090801@osg.samsung.com> In-Reply-To: <55D24BAA.2090801@osg.samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1821 Lines: 51 On 08/17/2015 03:01 PM, Shuah Khan wrote: > On 08/17/2015 02:40 PM, John Stultz wrote: >> I noticed for non-monotonic timers in timer_list, some of the >> output looked a little confusing. >> >> For example: >> #1: <0000000000000000>, posix_timer_fn, S:01, hrtimer_start_range_ns, leap-a-day/2360 >> # expires at 1434412800000000000-1434412800000000000 nsecs [in 1434410725062375469 to 1434410725062375469 nsecs] >> >> You'll note the relative time till the expiration "[in xxx to >> yyy nsecs]" is incorrect. This is because its printing the delta >> between CLOCK_MONOTONIC time to the CLOCK_REALTIME expiration. >> >> This patch fixes this issue by adding the clock offset to the >> "now" time which we use to calculate the delta. >> >> Cc: Prarit Bhargava >> Cc: Daniel Bristot de Oliveira >> Cc: Richard Cochran >> Cc: Jan Kara >> Cc: Jiri Bohac >> Cc: Thomas Gleixner >> Cc: Ingo Molnar >> Cc: Shuah Khan >> Signed-off-by: John Stultz >> --- > > Hi John, > > I see just this patch in the series and not the others. Could you > please make sure I am on the cc for all of them. I will review and > try to get these into 4.3 > Never mind. Looks like this one at least is better suited to go through timer git. -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978 -- 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/