From patchwork Mon Apr 21 09:55:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28679 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 30F8C2032B for ; Mon, 21 Apr 2014 09:57:30 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf18384294pbb.9 for ; Mon, 21 Apr 2014 02:57:29 -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=gf/urSeGQ/03wO9DFMVj51g2wMcuhBpw2fFD9THnC44=; b=aDiKDRB1ZB1PpDXf1ZZR96CXdN9BaDWBMPva5gJE0ShPashrV27/tIOnpEguZe8FEg F5Uu9Q/EXaXXM9lqP+2vUTfNkeSY2GKf/2+Oc3ZraF4BOIuZCTN8PkRQmpcHKnkqFJAb to8PODw/sh+buE2O62EGY+eCEf8W2Bba8VUuxvoHD8FiECq9/xG0rPsgXwqqo/fh9CTi NyGA1cL1MgyLHFWksDxKTssI0POlODNyzDw0m8vdst4MKKSW6lhruAc8r4vhVT+4/JP/ HOuvG0a/beZT5QrUU9Wk/wJoIGs84ZGJks5yVKTzXRHFo7CGwgB7Y/aRfukoDndae9AY dTQA== X-Gm-Message-State: ALoCoQkRGNuiwN5JwBC3oj+/sV5imK9QML91ZNTYEgXs3+KzpfkaYrPKLX4Fw+lmjghDltxmJSDo X-Received: by 10.66.66.196 with SMTP id h4mr17876481pat.22.1398074249456; Mon, 21 Apr 2014 02:57:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.212 with SMTP id z78ls2458145qgz.93.gmail; Mon, 21 Apr 2014 02:57:29 -0700 (PDT) X-Received: by 10.58.219.233 with SMTP id pr9mr34545204vec.10.1398074249326; Mon, 21 Apr 2014 02:57:29 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id cx4si6177377vcb.113.2014.04.21.02.57.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so7438416veb.6 for ; Mon, 21 Apr 2014 02:57:29 -0700 (PDT) X-Received: by 10.220.4.132 with SMTP id 4mr30595337vcr.9.1398074249247; Mon, 21 Apr 2014 02:57:29 -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.221.72 with SMTP id ib8csp280298vcb; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) X-Received: by 10.68.222.105 with SMTP id ql9mr37226079pbc.4.1398074247852; Mon, 21 Apr 2014 02:57:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si827030pbg.504.2014.04.21.02.57.27; Mon, 21 Apr 2014 02:57:27 -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 S1752123AbaDUJ5L (ORCPT + 26 others); Mon, 21 Apr 2014 05:57:11 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:46702 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051AbaDUJ5E (ORCPT ); Mon, 21 Apr 2014 05:57:04 -0400 Received: by mail-we0-f172.google.com with SMTP id t61so3582976wes.17 for ; Mon, 21 Apr 2014 02:57:03 -0700 (PDT) X-Received: by 10.180.105.72 with SMTP id gk8mr13359265wib.32.1398074223373; Mon, 21 Apr 2014 02:57:03 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id u8sm56505163wjq.1.2014.04.21.02.56.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:02 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linaro-networking@linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Viresh Kumar Subject: [PATCH V2 17/19] tick-sched: remove local variable 'now' from tick_setup_sched_timer() Date: Mon, 21 Apr 2014 15:25:13 +0530 Message-Id: <854b0c5813797f9f146dc4a9d94c8e21d47c1e64.1398072824.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.175 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: , Local variable 'now' is used at only one place and so can be replaced by ktime_get() instead. Signed-off-by: Viresh Kumar --- kernel/time/tick-sched.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 2360e7a..4a94412 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1120,7 +1120,6 @@ early_param("skew_tick", skew_tick); void tick_setup_sched_timer(void) { struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); - ktime_t now = ktime_get(); /* * Emulate tick processing via per-CPU hrtimers: @@ -1140,13 +1139,12 @@ void tick_setup_sched_timer(void) } for (;;) { - hrtimer_forward(&ts->sched_timer, now, tick_period); + hrtimer_forward(&ts->sched_timer, ktime_get(), tick_period); hrtimer_start_expires(&ts->sched_timer, HRTIMER_MODE_ABS_PINNED); /* Check, if the timer was already in the past */ if (hrtimer_active(&ts->sched_timer)) break; - now = ktime_get(); } #ifdef CONFIG_NO_HZ_COMMON