From patchwork Mon Apr 14 16:23:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28346 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9EFE20534 for ; Mon, 14 Apr 2014 16:28:05 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf28949186pdb.5 for ; Mon, 14 Apr 2014 09:28:05 -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=zjxFaL94JT1WRuoVTKYTzN6YuZhEJOzGPZNhP6eTIUw=; b=hos3FeADyShv51ANBnzzFbX035Z4gVrlUD+2SmCsXY41bn+bVEs6XQGBlqIE2wYwSZ FU3/mexnSuQrtKC+u+Ile8ywSYsul7tIapa0kVGt4vrC1Jjq2lGN5bqW1ca6QRJHtz7g jTPLyVQsyzPvCjS2tv0NZi46QzykMT9qtO44z6QFrpJ2HWMLyy7aWCw1/JTR4gU+hNRK tdz23y7xBmZVSNXqFmg7RX7dXUxa8iT6T1kVwBgEzU3jp8jc12ZEnIWozjU+9ilpVd08 TR7qVkJwucpWyT/6QCI+szUrTAA67pqYXrYhTnM9mi+nutxM0XRkY6dze1EHLZIOqWvC icyA== X-Gm-Message-State: ALoCoQmyU1vBHrKh6PG+6ctYdNyrDessGY9z0/5szvUOPjyUXYi5cQ6L+vK/gm1hcGUhtZx37hv2 X-Received: by 10.66.137.8 with SMTP id qe8mr3171033pab.46.1397492885132; Mon, 14 Apr 2014 09:28:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.116 with SMTP id z107ls2768822qge.37.gmail; Mon, 14 Apr 2014 09:28:04 -0700 (PDT) X-Received: by 10.220.133.80 with SMTP id e16mr37423453vct.13.1397492884935; Mon, 14 Apr 2014 09:28:04 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id cx1si1496769vdb.146.2014.04.14.09.28.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:28:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id ib6so7967155vcb.13 for ; Mon, 14 Apr 2014 09:28:04 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr31477937vdb.7.1397492884794; Mon, 14 Apr 2014 09:28:04 -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 ib8csp162903vcb; Mon, 14 Apr 2014 09:28:04 -0700 (PDT) X-Received: by 10.68.174.225 with SMTP id bv1mr45491838pbc.12.1397492884088; Mon, 14 Apr 2014 09:28:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tv5si9134739pbc.502.2014.04.14.09.28.03; Mon, 14 Apr 2014 09:28:03 -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 S1755859AbaDNQ1j (ORCPT + 26 others); Mon, 14 Apr 2014 12:27:39 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:54279 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753360AbaDNQ1e (ORCPT ); Mon, 14 Apr 2014 12:27:34 -0400 Received: by mail-pd0-f170.google.com with SMTP id v10so8324617pde.1 for ; Mon, 14 Apr 2014 09:27:34 -0700 (PDT) X-Received: by 10.68.160.163 with SMTP id xl3mr45410975pbb.39.1397492854192; Mon, 14 Apr 2014 09:27:34 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id xk1sm82478595pac.21.2014.04.14.09.27.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:27:33 -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 30/38] tick-sched: move nohz_full_buf[] inside tick_nohz_init() Date: Mon, 14 Apr 2014 21:53:52 +0530 Message-Id: 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.182 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: , nohz_full_buf[] is used at only one place, i.e. inside tick_nohz_init(). Make it a local variable. Can move it out in case it is used in some other routines in future. Signed-off-by: Viresh Kumar --- kernel/time/tick-sched.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index d8b9a69..22b9505 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -321,13 +321,6 @@ static int tick_nohz_cpu_down_callback(struct notifier_block *nfb, return NOTIFY_OK; } -/* - * Worst case string length in chunks of CPU range seems 2 steps - * separations: 0,2,4,6,... - * This is NR_CPUS + sizeof('\0') - */ -static char __initdata nohz_full_buf[NR_CPUS + 1]; - static int tick_nohz_init_all(void) { int err = -1; @@ -347,6 +340,12 @@ static int tick_nohz_init_all(void) void __init tick_nohz_init(void) { + /* + * Worst case string length in chunks of CPU range seems 2 steps + * separations: 0,2,4,6,... + * This is NR_CPUS + sizeof('\0') + */ + char nohz_full_buf[NR_CPUS + 1]; int cpu; if (!tick_nohz_full_running) {