Message ID | e68fe7a094852108be0d3f7bbb5194f0ed7d9cf5.1396592516.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBUVN7GMQKGQE7UHQMBA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 376D120369 for <linaro@patches.linaro.org>; Fri, 4 Apr 2014 06:53:07 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf9821720pdb.8 for <linaro@patches.linaro.org>; Thu, 03 Apr 2014 23:53:06 -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=bWHeqdU7kpllIcSzfW+wPRzi05h3VcrhbKNxsjhTozQ=; b=L5fj25PlU505kXCJV/lXT9s2ZlOlvEadpwEmU3H1djzonSqyqS5wKxJiEjTb84gBbW Mrs6j0FXk0Tc9g/pp4cE5vsVV4Jzqx8l1iUs/JX13iT97cj325JQ6oreUfctHUdFH8rA UuhSqZA9+JZkxZyiS0bM0vudGFoVK6UfVXcQ+ma9YSHvEhdK+zGhxuIoHiEaPXYGZIjR bnOo8rMDsV7jj+L3x3BV45XE74muMO6CeVEMYLqWf28e2hUeQw8VDK1oDW9KsA1dWhYU iscOWOGYyLhHcYIcte82LsxHMDiL+5ogL1E4fvASPdQ6Fm23S0QpG/eIgbZPnpedsGlX yD7Q== X-Gm-Message-State: ALoCoQkqDYmAM+xGHoHdRcnxausdijc1+dyh7rAsBwTCWkDxVtP6yZNyp02RTBl/WkUI535zwPjP X-Received: by 10.66.192.232 with SMTP id hj8mr4851669pac.2.1396594386438; Thu, 03 Apr 2014 23:53:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.40 with SMTP id y37ls954296qgy.10.gmail; Thu, 03 Apr 2014 23:53:06 -0700 (PDT) X-Received: by 10.58.207.74 with SMTP id lu10mr3623288vec.15.1396594386242; Thu, 03 Apr 2014 23:53:06 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id a8si636826vej.17.2014.04.03.23.53.06 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:53:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id la4so2847495vcb.3 for <patchwork-forward@linaro.org>; Thu, 03 Apr 2014 23:53:06 -0700 (PDT) X-Received: by 10.220.11.208 with SMTP id u16mr6725756vcu.19.1396594386171; Thu, 03 Apr 2014 23:53:06 -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 v8csp89829vcv; Thu, 3 Apr 2014 23:53:05 -0700 (PDT) X-Received: by 10.66.158.68 with SMTP id ws4mr12892333pab.122.1396594384946; Thu, 03 Apr 2014 23:53:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk5si4185557pbc.381.2014.04.03.23.53.04; Thu, 03 Apr 2014 23:53:04 -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 S1752941AbaDDGww (ORCPT <rfc822;markus.mayer@linaro.org> + 27 others); Fri, 4 Apr 2014 02:52:52 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:53247 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbaDDGkr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Apr 2014 02:40:47 -0400 Received: by mail-we0-f171.google.com with SMTP id t61so2881853wes.2 for <linux-kernel@vger.kernel.org>; Thu, 03 Apr 2014 23:40:46 -0700 (PDT) X-Received: by 10.180.10.66 with SMTP id g2mr1755992wib.5.1396593645963; Thu, 03 Apr 2014 23:40:45 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id q2sm2716345wix.5.2014.04.03.23.40.42 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:40:45 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org> Subject: [PATCH V2 10/36] hrtimer: use base->index instead of basenum in switch_hrtimer_base() Date: Fri, 4 Apr 2014 12:05:53 +0530 Message-Id: <e68fe7a094852108be0d3f7bbb5194f0ed7d9cf5.1396592516.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1396592516.git.viresh.kumar@linaro.org> References: <cover.1396592516.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1396592516.git.viresh.kumar@linaro.org> References: <cover.1396592516.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.172 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 3b29023..04e4c77 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) { /*
In switch_hrtimer_base() we have created a local variable basenum which is set to base->index initially. This variable is used at only one place. It makes code more readable if we remove this variable and use base->index directly. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- kernel/hrtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)