From patchwork Wed Mar 26 11:21:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27099 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD5CB206F9 for ; Wed, 26 Mar 2014 11:22:41 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q9sf1143607ykb.3 for ; Wed, 26 Mar 2014 04:22:41 -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=RzlRM6rpuBb/tBPDMHbnb1D3IRU1ocEiQ9uEgyRBjj8=; b=ipIUd1q3Tb1u/a5Vz7kfmeoTD7fGnOnhKlNbsFr9RPLiJ8fqgkqa0R1l5HFZ0IXPe4 /Zpg3v6eYcrMcd9Yc2dOTC3H+Asr1Semed+5mui7P8ClC+ZiAdfKTEzhmp6bxWnpWnhT JtY1oZe4jMWDT/GjKyIMP0z2d9oRixjmrhM+kpYO1LdyUb6naF1fNWvhWnLKvadbpG5N Um4x9qbHKI8EmghFEeGlyiJIA3rEllvfNj9PIs7sOXfysiUya/MjhPwAzrv3c+dTK5LY ZyXjgSPxHGiQyIB1bxZqNC3fTmYZbfx8WCSh295w3lXxWs4JecR3IWkdVcKb9W71w14f gC3Q== X-Gm-Message-State: ALoCoQlzOTQMr5XOXohbUAJwNTFHo1FXsCgXHdKIvSa1UGKfUeT9YVW2B/oKZqjIZm0Wpk87tiXW X-Received: by 10.58.112.97 with SMTP id ip1mr22082008veb.32.1395832961466; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.100 with SMTP id u91ls598778qgu.74.gmail; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) X-Received: by 10.220.95.139 with SMTP id d11mr12047362vcn.21.1395832961372; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id i7si4447935vei.31.2014.03.26.04.22.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so2095752veb.18 for ; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) X-Received: by 10.221.74.65 with SMTP id yv1mr96778vcb.31.1395832961298; Wed, 26 Mar 2014 04:22:41 -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.78.9 with SMTP id i9csp38042vck; Wed, 26 Mar 2014 04:22:40 -0700 (PDT) X-Received: by 10.68.233.99 with SMTP id tv3mr17300811pbc.163.1395832960076; Wed, 26 Mar 2014 04:22:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si13417993pbn.390.2014.03.26.04.22.39; Wed, 26 Mar 2014 04:22:39 -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 S1754297AbaCZLWJ (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:09 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:41163 "EHLO mail-we0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753879AbaCZLWH (ORCPT ); Wed, 26 Mar 2014 07:22:07 -0400 Received: by mail-we0-f169.google.com with SMTP id w62so1028946wes.28 for ; Wed, 26 Mar 2014 04:22:06 -0700 (PDT) X-Received: by 10.180.106.168 with SMTP id gv8mr28986272wib.19.1395832926005; Wed, 26 Mar 2014 04:22:06 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id r1sm1792017wia.5.2014.03.26.04.22.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:05 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 03/14] hrtimer: call hrtimer_set_expires_range() from hrtimer_set_expires_range_ns() Date: Wed, 26 Mar 2014 16:51:09 +0530 Message-Id: <52fac3f430d3c0da7b218264d7423997b469b8d0.1395832156.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.173 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: , hrtimer_set_expires_range() and hrtimer_set_expires_range_ns() have almost same implementations and so we can call hrtimer_set_expires_range() from hrtimer_set_expires_range_ns() internally, instead of duplicating code. Signed-off-by: Viresh Kumar --- include/linux/hrtimer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index e7a8d3f..17c08ca 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -207,8 +207,7 @@ static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, unsigned long delta) { - timer->_softexpires = time; - timer->node.expires = ktime_add_safe(time, ns_to_ktime(delta)); + hrtimer_set_expires_range(timer, time, ns_to_ktime(delta)); } static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64)