From patchwork Thu Oct 3 15:56:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20795 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3DD0825CAB for ; Thu, 3 Oct 2013 15:57:43 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf5695571yha.9 for ; Thu, 03 Oct 2013 08:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state: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=R9cmMxzkyNKEnawTmeJSsPQc+IYf5Z9ovykLZMCwMGY=; b=jAoKaOqGshnjZKhT0JpXxkPuk8To7+jaOEeOsJZForYLQ09irGkIAvTSqs4ZgZ8VyE om1JNaQEy+o2Cz6sPI+Z62NBXDrLDjWJWpjpbGCShCPGJlhj9tCKhxOrfFwUwtmb3LhS PuJ1qewUhtxgbrStOU77rt6LAoSolVK7yI/4UsSzMybbOoe7Kb1p0o1sJyTRXCQnfKwz 9HUR+7F5FCMLu8CS5GII9lW7LjDo2mDyouKidDvQio28Dx3QWHPQIRapM+5Gqyk/Ckla y+nPestYFy5R9TZEeG7PV1r0leqtuPeFUf4+EFoOgZhwhPJEHQN3JmXBTzuJZMWoHwHW 0KfQ== X-Received: by 10.236.54.68 with SMTP id h44mr8563209yhc.21.1380815862909; Thu, 03 Oct 2013 08:57:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.244 with SMTP id u20ls1036325qeq.74.gmail; Thu, 03 Oct 2013 08:57:42 -0700 (PDT) X-Received: by 10.220.110.6 with SMTP id l6mr751254vcp.28.1380815862795; Thu, 03 Oct 2013 08:57:42 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id i15si1878044vep.130.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id ld13so1078607vcb.39 for ; Thu, 03 Oct 2013 08:57:42 -0700 (PDT) X-Gm-Message-State: ALoCoQn7962svBQaU6V5qHNfF0dm9b4catRHznXGImtE/vOXeU0Eht9mZ1DjHxX0jspXE38dpCdJ X-Received: by 10.221.40.10 with SMTP id to10mr2293683vcb.22.1380815862705; Thu, 03 Oct 2013 08:57:42 -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 u4csp189182vcz; Thu, 3 Oct 2013 08:57:42 -0700 (PDT) X-Received: by 10.68.135.132 with SMTP id ps4mr1266483pbb.171.1380815861601; Thu, 03 Oct 2013 08:57:41 -0700 (PDT) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id dk3si6074959pbb.90.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id kp14so2821123pab.10 for ; Thu, 03 Oct 2013 08:57:41 -0700 (PDT) X-Received: by 10.66.118.129 with SMTP id km1mr10177931pab.127.1380815861147; Thu, 03 Oct 2013 08:57:41 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id bp4sm6471646pbb.42.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:40 -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 V2 06/16] cpuidle: rearrange code in __cpuidle_driver_init() Date: Thu, 3 Oct 2013 21:26:45 +0530 Message-Id: <77dcb6954b52386106a0ba262b093e6718e0fd7b.1380815504.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.220.180 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: , This is trivial patch that just reorders few statements in __cpuidle_driver_init() routine, so that we don't need both 'continue' and 'break' in the for loop. Functionally it shouldn't change anything. Signed-off-by: Viresh Kumar --- drivers/cpuidle/driver.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index ebc6b0f..58077a9 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -170,12 +170,10 @@ static void __cpuidle_driver_init(struct cpuidle_driver *drv) * order, because usually one of the deeper states have this flag set. */ for (i = drv->state_count - 1; i >= 0 ; i--) { - - if (!(drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP)) - continue; - - drv->bctimer = 1; - break; + if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) { + drv->bctimer = 1; + break; + } } }