From patchwork Mon Apr 14 16:23:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28341 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B4E3320534 for ; Mon, 14 Apr 2014 16:26:40 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf32227302pbb.7 for ; Mon, 14 Apr 2014 09:26:40 -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=t1LoN9Xb9mYE33GVF/RsC4kynRIUpICa0Gi+UDiwvKA=; b=kArXYGA7qGiNfZcKNmmkRKk/aPQ6hFppw8lnnETv2b7O5NWFuleLFQTUy1cr0RRxqj G16ALRtzBcEMYSAf8Tun3WODzrXLgFybCA30DCJMoR+SIFjYQUQkWIf6GV9ruLbUYnlF fW/VMCgCtoNKQWE1+mQvjsSW5+HSKKYJe0f95UG6aLwP6tkZkOmCj7dw6Nb+UvMw2CWn F/J6nUVMlfXZUOfcAcoxRstX5eEjkDBNuikHTfXJ6rJf4GtlgvBl5ZSBBpgbcpzXkdNR TFhqZTAgV3lQQjKlUsDRCkDIRNt9xn+dHL0qtW/OV4kbz8Zf8zRAd+c4meek+f5Zc72g ydCA== X-Gm-Message-State: ALoCoQnzFFNY0Kr52W5fZRXDcUWnWKoQ8Kb3POXL/a6wmhd035beyb6ESN/pzvxaA7gHf4QgELNy X-Received: by 10.66.137.105 with SMTP id qh9mr23539703pab.30.1397492800008; Mon, 14 Apr 2014 09:26:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.163 with SMTP id b32ls2694505qge.22.gmail; Mon, 14 Apr 2014 09:26:39 -0700 (PDT) X-Received: by 10.220.225.5 with SMTP id iq5mr251717vcb.42.1397492799850; Mon, 14 Apr 2014 09:26:39 -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 xo2si2832216vec.116.2014.04.14.09.26.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:26:39 -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 pa12so7782650veb.14 for ; Mon, 14 Apr 2014 09:26:39 -0700 (PDT) X-Received: by 10.58.243.39 with SMTP id wv7mr67234vec.51.1397492799770; Mon, 14 Apr 2014 09:26:39 -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 ib8csp162812vcb; Mon, 14 Apr 2014 09:26:38 -0700 (PDT) X-Received: by 10.66.122.36 with SMTP id lp4mr45244551pab.82.1397492798481; Mon, 14 Apr 2014 09:26:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs8si9142921pad.299.2014.04.14.09.26.37; Mon, 14 Apr 2014 09:26:37 -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 S1755668AbaDNQ0b (ORCPT + 26 others); Mon, 14 Apr 2014 12:26:31 -0400 Received: from mail-pb0-f52.google.com ([209.85.160.52]:61625 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755633AbaDNQ0U (ORCPT ); Mon, 14 Apr 2014 12:26:20 -0400 Received: by mail-pb0-f52.google.com with SMTP id rr13so8496907pbb.11 for ; Mon, 14 Apr 2014 09:26:20 -0700 (PDT) X-Received: by 10.66.251.101 with SMTP id zj5mr3096922pac.154.1397492780495; Mon, 14 Apr 2014 09:26:20 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id kt8sm82530347pab.7.2014.04.14.09.26.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:26:19 -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 21/38] tick-sched: no need to rewrite '1' to tick_nohz_enabled Date: Mon, 14 Apr 2014 21:53:43 +0530 Message-Id: <65eb0d37413fa94b7b1f6d152550d8cc599b87cc.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.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: , NO_HZ feature can be enabled/disabled from bootargs if we have a string 'nohz=' followed by 'on' or 'off'. The default value of this variable is '1'. When 'on' is passed as bootarg, we don't have to overwrite this variable by '1'. Also, an extra blank line is removed. Signed-off-by: Viresh Kumar --- kernel/time/tick-sched.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index e9f9f87..9cbba513 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -370,13 +370,10 @@ static int __init setup_tick_nohz(char *str) { if (!strcmp(str, "off")) tick_nohz_enabled = 0; - else if (!strcmp(str, "on")) - tick_nohz_enabled = 1; - else + else if (strcmp(str, "on")) return 0; return 1; } - __setup("nohz=", setup_tick_nohz); /**