From patchwork Sun Sep 22 01:21:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20510 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E7F8025E85 for ; Sun, 22 Sep 2013 01:22:15 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf1896351vbg.2 for ; Sat, 21 Sep 2013 18:22:15 -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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=rc0ed9vZcM59mr+2YpAcx8ZuVUIJn9trjprjpenhGQo=; b=AGuHg+CxV/b4oHiso/nQBV2mruO97fMKL6tJZ3tgXD8R6GFYHEmOdjWcDZmT4UySVD 6EPBttJKVtr8POfMG6TVpfchzv1Q4eRmtiBPCHm/R/Buq+zSbnkWxC80yjN5W3XJZ350 SXV2N8DBlszflndbOXMS50yNPBoOKy51vlGYqSbgDpuAngjrpPxaWn07yHAqADyKY4+g lBvE5vejd0MeeqvyNmw1rGHSnrr4eMX8UhKgjIYbfp1vNfD+IWbWKThGm2AXWm9YTp39 dxiKb6HYLHyBKMzTw5uL2uhH1wNAoRujlkwJ5RSKoZV1nmscI5C7T4iXRgnP5+nmIcwG CZgQ== X-Gm-Message-State: ALoCoQkJfSNFy0adcsW0YF77t8W8FqaB52hkaftg7007qV6BXrbDtBvzL3e9c2l4+bzns4L5s5N6 X-Received: by 10.224.51.68 with SMTP id c4mr6586772qag.7.1379812935783; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.98 with SMTP id n2ls705178qed.12.gmail; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) X-Received: by 10.58.118.130 with SMTP id km2mr14033588veb.0.1379812935691; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id fx4si4532940vdc.65.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so1336048vbg.17 for ; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr14144720vcb.4.1379812935609; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp91725vcz; Sat, 21 Sep 2013 18:22:15 -0700 (PDT) X-Received: by 10.66.171.13 with SMTP id aq13mr16988716pac.30.1379812934738; Sat, 21 Sep 2013 18:22:14 -0700 (PDT) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx.google.com with ESMTPS id rt3si15781392pbc.323.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.42 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.42; Received: by mail-pb0-f42.google.com with SMTP id un15so1839020pbc.1 for ; Sat, 21 Sep 2013 18:22:14 -0700 (PDT) X-Received: by 10.66.25.70 with SMTP id a6mr16689372pag.68.1379812934342; Sat, 21 Sep 2013 18:22:14 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id fa4sm28250094pab.17.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:13 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 08/21] cpuidle: use cpuidle_disabled() instead of "off" Date: Sun, 22 Sep 2013 06:51:00 +0530 Message-Id: <19979ce88726285c72dd6fe3d7b370d53669443c.1379779777.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: 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.212.44 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We have a routine for getting value of "off", better call that instead of using "off" directly. Signed-off-by: Viresh Kumar --- drivers/cpuidle/cpuidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 8c91bad..aec9029 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -119,7 +119,7 @@ int cpuidle_idle_call(void) struct cpuidle_driver *drv; int next_state, entered_state; - if (off) + if (cpuidle_disabled()) return -ENODEV; if (!initialized)