From patchwork Wed Mar 26 11:21:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27101 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A9CB20369 for ; Wed, 26 Mar 2014 11:22:43 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf6622727ieb.1 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=IoQv9PRZlw5Z5GJAPyVnNaBeWo85e3BBhsO8Ik7slkk=; b=HudAyJUyW1vPreqnvacEfzOrFZDPoZU2YMjMlm1T9ecwLCCb0I8NYv6a6J+vr/k51a kNF/i6yVst6tooG3twA298qvbiD8wlbk3TS9hA68M81QgJFsW3YMu6WSDGG3YxhawE9r 6yJq6+OvXGa7sf932jbB+thtXzP1x8RJmrjFkbca2A9G7D5SkRZUGk8r+5hh06zFfhJ/ MAREUbZ/9oAACC4GQEM8wQ+HOxoc6tHnlWucoEliaDhkNzxtQJ9TsqEcZAskZLRQn4DQ mhveW9D5Kds70BC3NwIeFQj688LX0ZawN/hrO7fUHS749hR+067niP89N0BkeDaMZqwu IgrA== X-Gm-Message-State: ALoCoQnV6FA/HF2UZV5VZikYXySTqX1QZ+dFaKlnX33IlOqZ04DS1tbKerMfmvtiLC1DmIANv9Jm X-Received: by 10.50.50.2 with SMTP id y2mr5673932ign.1.1395832962842; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.73 with SMTP id 67ls568386qga.18.gmail; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) X-Received: by 10.221.74.65 with SMTP id yv1mr96878vcb.31.1395832962750; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id y16si4367493vct.210.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.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id lh14so2172634vcb.6 for ; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) X-Received: by 10.220.95.139 with SMTP id d11mr12047455vcn.21.1395832962682; Wed, 26 Mar 2014 04:22:42 -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 i9csp38046vck; Wed, 26 Mar 2014 04:22:42 -0700 (PDT) X-Received: by 10.68.102.34 with SMTP id fl2mr86327854pbb.2.1395832961705; Wed, 26 Mar 2014 04:22:41 -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 S1754479AbaCZLWV (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:21 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:52146 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCZLWS (ORCPT ); Wed, 26 Mar 2014 07:22:18 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi5so4555688wib.5 for ; Wed, 26 Mar 2014 04:22:17 -0700 (PDT) X-Received: by 10.180.106.40 with SMTP id gr8mr30547516wib.31.1395832937477; Wed, 26 Mar 2014 04:22:17 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id h5sm1755176wiy.18.2014.03.26.04.22.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:16 -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 05/14] hrtimer: no need to rewrite '1' to hrtimer_hres_enabled Date: Wed, 26 Mar 2014 16:51:11 +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.175 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 b0bcc10..e5d81ee 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -503,9 +503,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; }