From patchwork Fri Apr 4 06:35:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27768 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B0537206F9 for ; Fri, 4 Apr 2014 06:52:17 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf7806737vcb.3 for ; Thu, 03 Apr 2014 23:52:17 -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=vhpqDaQ4BerjclCMtGV+DA2fgZs0o1phRQcGmsRLVhc=; b=Qy5t1lgsALWw/ccTA3EcqSNRDq4bHSbDmWHOp/vDZbej3vPUxjO2dBHpb5PcAUCW2q YaPNPlgNcA0nlu81w0uiguwKxkhLLppZ6BNbu9u0Rs1GhBit1mkYlUTxCUsmck/Tln5K JQA47r2IZ2wXJtXkXTGsanLtQs+ljgh0zK26UHb+qbAPzyStgZnhDaTBGHfTpEhahy+5 Bx5xLt0TzM17JV6vhKmDgrlQxo68fdIN29w3yKEfQq9oCZxkB8UjFHK9FMZGPBXak7i0 eDgoTBDiX5BcS/j0VA6xbFFg8+NlaUvBzw+QU2BmiwQrMZjdExe0S+mZHrON+CmQoDGd IFiQ== X-Gm-Message-State: ALoCoQmbaqo2MWCDkbuOMRqnrqXBxUd0K3NmC78erh9KDAaPkHTnZF6oCaE/6zRktR/bNjEUbo8D X-Received: by 10.236.181.74 with SMTP id k50mr5821257yhm.46.1396594337206; Thu, 03 Apr 2014 23:52:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.33 with SMTP id j30ls574814qga.67.gmail; Thu, 03 Apr 2014 23:52:17 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr6867457vcx.1.1396594337140; Thu, 03 Apr 2014 23:52:17 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id p2si1645582vcx.93.2014.04.03.23.52.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:52:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id im17so2819316vcb.37 for ; Thu, 03 Apr 2014 23:52:17 -0700 (PDT) X-Received: by 10.52.0.193 with SMTP id 1mr9910575vdg.0.1396594337063; Thu, 03 Apr 2014 23:52:17 -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 v8csp89796vcv; Thu, 3 Apr 2014 23:52:15 -0700 (PDT) X-Received: by 10.68.191.39 with SMTP id gv7mr13152611pbc.90.1396594333821; Thu, 03 Apr 2014 23:52:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha5si4188026pbc.344.2014.04.03.23.52.12; Thu, 03 Apr 2014 23:52:12 -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 S1753273AbaDDGwG (ORCPT + 27 others); Fri, 4 Apr 2014 02:52:06 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:44011 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233AbaDDGkw (ORCPT ); Fri, 4 Apr 2014 02:40:52 -0400 Received: by mail-wg0-f48.google.com with SMTP id l18so2962648wgh.7 for ; Thu, 03 Apr 2014 23:40:51 -0700 (PDT) X-Received: by 10.180.97.72 with SMTP id dy8mr1758989wib.5.1396593651754; Thu, 03 Apr 2014 23:40:51 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id jd2sm2712491wic.9.2014.04.03.23.40.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:40:51 -0700 (PDT) From: Viresh Kumar 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 Subject: [PATCH V2 11/36] hrtimer: no need to rewrite '1' to hrtimer_hres_enabled Date: Fri, 4 Apr 2014 12:05:54 +0530 Message-Id: <075a5a0fd19ed3470cd7bf784c61d72b2ff0e228.1396592516.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.178 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: , High Resolution feature can be enabled/disabled from bootargs if we have a string 'highres=' 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'. Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 04e4c77..b0fbf12 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -509,9 +509,7 @@ static int __init setup_hrtimer_hres(char *str) { if (!strcmp(str, "off")) hrtimer_hres_enabled = 0; - else if (!strcmp(str, "on")) - hrtimer_hres_enabled = 1; - else + else if (strcmp(str, "on")) return 0; return 1; }