From patchwork Wed Mar 26 11:21:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27100 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CAE6B20369 for ; Wed, 26 Mar 2014 11:22:42 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf6615860iec.3 for ; Wed, 26 Mar 2014 04:22:42 -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=uBPQMSYmevJfnvszSHNU0QwggNcN0+wVxrSJg+/REZQ=; b=dC82cv4bGw5uGFxq7iiO05JNVXIXX8wtAEtPfcHJFkR/6jCkZjy01NWEXeE678CMfA tAGyfb18pbrY0W9NjGR5YW5dbfwGd0qfo3k9vCL4ke96XaIZVRhjgmV9jNxg9SQpRLO7 0K7u/Gn6uJNjP1HgRVWHfQoTESD1LDuWfNtYQp+fJZU8B7bAIHLtZfy/7hPIHBE2UKag if+qxc3YSrs2Tfe45093bFsvUUDsZ+yjXUdXS2khbf9T6iN05t5gdCApSksZ/sb9BjG8 +byYcSTUNnTxAF/CkPOLiN58g32J94zz6QxydHdEIuWU6JoAgoSVt70POFDjPsZVgB7C w+Gg== X-Gm-Message-State: ALoCoQl/ZsuJ0mgNWjazRaE3cRS0sDSIUFR9XRkzlw5PvunBJuWZyWqwsF1NryE0OLvkkvNhhG5l X-Received: by 10.42.123.139 with SMTP id s11mr25866885icr.15.1395832962166; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.20 with SMTP id b20ls558379qga.5.gmail; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) X-Received: by 10.52.18.70 with SMTP id u6mr51892093vdd.11.1395832962074; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id i7si4443978vei.85.2014.03.26.04.22.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.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.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so2199944veb.0 for ; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr367220vcb.28.1395832961998; 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 i9csp38045vck; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) X-Received: by 10.66.102.39 with SMTP id fl7mr3907648pab.43.1395832960811; 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.40; Wed, 26 Mar 2014 04:22:40 -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 S1754407AbaCZLWR (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:17 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:60013 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbaCZLWM (ORCPT ); Wed, 26 Mar 2014 07:22:12 -0400 Received: by mail-wg0-f42.google.com with SMTP id y10so1168248wgg.13 for ; Wed, 26 Mar 2014 04:22:11 -0700 (PDT) X-Received: by 10.180.36.226 with SMTP id t2mr14305117wij.37.1395832931654; Wed, 26 Mar 2014 04:22:11 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id n3sm1788017wix.10.2014.03.26.04.22.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:10 -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 04/14] hrtimer: use base->index instead of basenum in switch_hrtimer_base() Date: Wed, 26 Mar 2014 16:51:10 +0530 Message-Id: <535a552cd2c05a3ae2cb61da2583646e1c649699.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.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: , In switch_hrtimer_base() we have created a local variable basenum which is set to base->index. This variable is used at only one place. It makes code more readable if we remove this variable use base->index directly. Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 95243f2..b0bcc10 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -202,11 +202,10 @@ switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, struct hrtimer_cpu_base *new_cpu_base; int this_cpu = smp_processor_id(); int cpu = get_nohz_timer_target(pinned); - int basenum = base->index; again: new_cpu_base = &per_cpu(hrtimer_bases, cpu); - new_base = &new_cpu_base->clock_base[basenum]; + new_base = &new_cpu_base->clock_base[base->index]; if (base != new_base) { /*