From patchwork Sun Sep 22 01:20:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20508 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 C9BE025E85 for ; Sun, 22 Sep 2013 01:22:03 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf1935303yha.1 for ; Sat, 21 Sep 2013 18:22:03 -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=SniI5E4bTJlIG75PsbWhTLBBn/uiOx92ttf1mpbN1Fk=; b=GTy3KMg8SpwZy2AN8KCAcAV/TaSNL9TZFx64EAyg/EqVvaLAjgSqH24C8Ku0mesyj1 dae+v6nQjqjt81fBxcWNog3bc7GuLP+V6WaVDCWlH+y24OOEFFfoSmPwyOpZrSLQ2Z2j u4VuMFotg8SJ7PTkbvnplcZnSURy/ohmH7yafHyWyLOUXhgjmVzLDqBt3O5T+a+TnMks WgwNxpNnZEpXPcAaEZ4hCcmiUcwdEKwmoPEmdiqq00+fzVWSUafwJlCVkuOwhtunz8KG Jlgq9+rEhANH5mW196s4HZS44qasCKhKf0k8RkKz3mL/w2jjM7QrTnbPnBeW8myso3vA AiTw== X-Gm-Message-State: ALoCoQkRCFXjBaYaYwbdE7YrXq4DtRNcD7miHT67Nn9ksf3ECRLGPghJtnoJ8Pij0pNHTtJ5hnLS X-Received: by 10.224.51.68 with SMTP id c4mr6586416qag.7.1379812923638; Sat, 21 Sep 2013 18:22:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.62.72 with SMTP id w8ls790647qer.2.gmail; Sat, 21 Sep 2013 18:22:03 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr59444vdb.21.1379812923554; Sat, 21 Sep 2013 18:22:03 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id xs13si4527618veb.142.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 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.49; Received: by mail-vb0-f49.google.com with SMTP id w16so1294829vbb.8 for ; Sat, 21 Sep 2013 18:22:03 -0700 (PDT) X-Received: by 10.52.33.44 with SMTP id o12mr7901744vdi.7.1379812923459; Sat, 21 Sep 2013 18:22:03 -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 u4csp91717vcz; Sat, 21 Sep 2013 18:22:02 -0700 (PDT) X-Received: by 10.68.29.36 with SMTP id g4mr72864pbh.145.1379812922037; Sat, 21 Sep 2013 18:22:02 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id sl4si17485175pac.155.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2166197pad.19 for ; Sat, 21 Sep 2013 18:22:01 -0700 (PDT) X-Received: by 10.68.232.74 with SMTP id tm10mr16294099pbc.64.1379812921654; Sat, 21 Sep 2013 18:22:01 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id so2sm20913542pbc.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:22:01 -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 06/21] cpuidle: rearrange code in __cpuidle_driver_init() Date: Sun, 22 Sep 2013 06:50:58 +0530 Message-Id: <72ec40529db737fe0eea6d14fc43fa332f9c5d59.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.49 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 8df66c8..6279e1c 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -172,12 +172,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; + } } }