From patchwork Fri Apr 4 06:36:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27747 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 605772036E for ; Fri, 4 Apr 2014 06:42:38 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oz11sf4754253veb.5 for ; Thu, 03 Apr 2014 23:42:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=AU/dHkS9Bls9HX3GTQDhDBSOuECZi/oz1sYmC5TxjMc=; b=ENQqSg2E2j0g/emheLibyr20KKZAr8b4fZzC4dWMVRNnekmYAyqMWHXtR2bcLNmirD +g30H78f6v2HeUckfwVsE+/GqyGi/zuO5PyptIsVDMktteFK8HK/B6ebWXqdTvCs05ij /DnQ2P9Nz/sQ/XB+8A7oJ7TXiCCQeho0EivaZBEK6PrawZEN8O4qWwf4qw4E7FajkBWI yw4yU2vJydvPQYCZHJUg4y+hYdkXTZ3GPOqGzOVPNEKXkquk+I0K0Vamdr05fkt1Abuk PFAwRIzlDjhcuZeY3C1e23pJ6OeoG3oPe2rn61skmwVfgNF7EqgzqPlHha9QJNnHboOg vWow== X-Gm-Message-State: ALoCoQnvUY4UB3RJsuq6+jXcDjXDZy9ZVhjc/ORv/fUwmh0MxCUlWKEl16a2URZNSfsbczr59CG4 X-Received: by 10.59.5.193 with SMTP id co1mr2407347ved.30.1396593758108; Thu, 03 Apr 2014 23:42:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.231 with SMTP id h94ls925912qgd.61.gmail; Thu, 03 Apr 2014 23:42:38 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr9849205vdb.7.1396593758027; Thu, 03 Apr 2014 23:42:38 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id cb3si1640264vdc.95.2014.04.03.23.42.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:42:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so1093828veb.21 for ; Thu, 03 Apr 2014 23:42:37 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr6815925vcx.7.1396593757939; Thu, 03 Apr 2014 23:42:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp89289vcv; Thu, 3 Apr 2014 23:42:37 -0700 (PDT) X-Received: by 10.67.14.98 with SMTP id ff2mr12722640pad.101.1396593753884; Thu, 03 Apr 2014 23:42:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xt7si4198997pab.20.2014.04.03.23.42.33; Thu, 03 Apr 2014 23:42:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752688AbaDDGly (ORCPT + 27 others); Fri, 4 Apr 2014 02:41:54 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:33526 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbaDDGlq (ORCPT ); Fri, 4 Apr 2014 02:41:46 -0400 Received: by mail-wg0-f52.google.com with SMTP id k14so2916662wgh.23 for ; Thu, 03 Apr 2014 23:41:45 -0700 (PDT) X-Received: by 10.180.188.169 with SMTP id gb9mr1748069wic.17.1396593704921; Thu, 03 Apr 2014 23:41:44 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id d6sm2726095wiz.4.2014.04.03.23.41.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:41:44 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, fweisbec@gmail.com, linaro-networking@linaro.org, Arvind.Chauhan@arm.com, linux-kernel@vger.kernel.org, Viresh Kumar , Ingo Molnar Subject: [PATCH V2 20/36] hrtimer: replace base by new_base to get resolution: __hrtimer_start_range_ns() Date: Fri, 4 Apr 2014 12:06:03 +0530 Message-Id: <20dfe3ddd26b9c52d362a9e9178e5b15f78f7ebe.1396592516.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This code was added long back by following commit: commit 06027bdd278a32a84b273e41db68a5db8ffd2bb6 Author: Ingo Molnar Date: Tue Feb 14 13:53:15 2006 -0800 [PATCH] hrtimer: round up relative start time on low-res arches Don't know if it was a mistake or was intentional. But probably we must use new_base instead of base here to get resolution. Things might be working smoothly as resolution might be same for both the bases in most of the cases. Also commit log of above commit has this: "This will go away with the GTOD framework". So, should we get this removed? Cc: Ingo Molnar Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 2ac423d..458b952 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -964,7 +964,7 @@ int __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, * timeouts. This will go away with the GTOD framework. */ #ifdef CONFIG_TIME_LOW_RES - tim = ktime_add_safe(tim, base->resolution); + tim = ktime_add_safe(tim, new_base->resolution); #endif }