From patchwork Mon Apr 14 16:23:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28348 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5007D20534 for ; Mon, 14 Apr 2014 16:28:15 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf45646233oag.6 for ; Mon, 14 Apr 2014 09:28:14 -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=0US8g4Qx7s1+KxTYyi22ApbQjsZiQSAMZVzMIviq9VY=; b=eFL5T6RdEL0oG76hBkIBmi7+fIc6CAWTualDPGAjlkYooZVA/uzyNNtsTQ+FRKLeCf cyaZ5dFsGO5wqT+Jc89AInT7OXa0wE7Z4ZRH/zq5/S/uudWMeFeDeG5upNdw+PVybAg+ V5aIkOxe20BAmG4ZZdTJ/Z3rIizN4LjGx8vDiF+9N0+3fVuRM760SMiMmXzSJzwMGHCZ uIO6z/KUgvm+avTxzPvo7OAAO+tvEl86UYbkKuZ7gViX8gyCLpJWYr+mzdWKqidHKzhi hhNRh87CVqnKZah5aZBZnWOmtbIpruxTRpdW8/A2hMZ4/iw+c6MnfrOBJO3UW3vovV0z 8IIg== X-Gm-Message-State: ALoCoQlYteVsmpeYKQzWYaD2ndh3UHRknw3KcAqOMV4+TvqH8T9MT/BzCtd747rb9+es6+FZVRj1 X-Received: by 10.182.81.7 with SMTP id v7mr21127037obx.28.1397492894846; Mon, 14 Apr 2014 09:28:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.66 with SMTP id h60ls2587129qge.54.gmail; Mon, 14 Apr 2014 09:28:14 -0700 (PDT) X-Received: by 10.52.15.1 with SMTP id t1mr212771vdc.49.1397492894696; Mon, 14 Apr 2014 09:28:14 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id od9si2832695vcb.173.2014.04.14.09.28.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:28:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so7804319vcb.14 for ; Mon, 14 Apr 2014 09:28:14 -0700 (PDT) X-Received: by 10.58.90.99 with SMTP id bv3mr1009650veb.34.1397492894610; Mon, 14 Apr 2014 09:28:14 -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 ib8csp162916vcb; Mon, 14 Apr 2014 09:28:14 -0700 (PDT) X-Received: by 10.66.122.1 with SMTP id lo1mr4637317pab.118.1397492893880; Mon, 14 Apr 2014 09:28:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si9165918paa.11.2014.04.14.09.28.13; Mon, 14 Apr 2014 09:28:13 -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 S1755891AbaDNQ2D (ORCPT + 26 others); Mon, 14 Apr 2014 12:28:03 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:54339 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753360AbaDNQ17 (ORCPT ); Mon, 14 Apr 2014 12:27:59 -0400 Received: by mail-pa0-f54.google.com with SMTP id lf10so8387575pab.41 for ; Mon, 14 Apr 2014 09:27:58 -0700 (PDT) X-Received: by 10.69.0.198 with SMTP id ba6mr41888795pbd.16.1397492878686; Mon, 14 Apr 2014 09:27:58 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id 10sm11670057pbo.51.2014.04.14.09.27.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:27:58 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Arvind.Chauhan@arm.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 34/38] tick-sched: remove local variable 'now' from tick_setup_sched_timer() Date: Mon, 14 Apr 2014 21:53:56 +0530 Message-Id: <486aa1d8c01ac6ef4ab3e5d8110b9931016151b2.1397492345.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.220.169 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 easily 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 a0a6705..78751b3 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1116,7 +1116,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: @@ -1136,13 +1135,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