Received: by 10.223.185.116 with SMTP id b49csp2020237wrg; Thu, 22 Feb 2018 07:01:03 -0800 (PST) X-Google-Smtp-Source: AH8x224FTDkGXyvOQhwv6Mt7Ob8BaeBN7Wg/Z0BamSkhhy+2JEvZBBhxtu6jeFPNkkKr4I3xAEBA X-Received: by 2002:a17:902:710f:: with SMTP id a15-v6mr6694135pll.87.1519311663242; Thu, 22 Feb 2018 07:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519311663; cv=none; d=google.com; s=arc-20160816; b=L9wLuPNBo/9b34u/VOW+O1sOQME2GLSQ68YqG/n0l9hbiEN2haQhIfqHx9GN2frwls ewTV4vToUIhe4KR2B2djw/F+gtc9DwKLjJH7dqdOn5R0qUSuMk7fG0CjJlKIZv1B0LBs nWGI7liKt0srCKaeGV74RVNfoSS3oXYOUsB4bU9TYcqiSRjPN1Hu0Fde0caCm/JL9oom Xa2FiqF1epFd/qclDVx9sehMYRgF08GU2F8HPAcR6xRqiYlTsQgf9bCWOM5Viv0QoSWR PCsOKSw3uh/RbRk8ccger05Y8DjLY93RWj/eMKY9kaWbAPVap858GW00B6J2WypAc5mR XJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=FcQfC1huiiVhdKEpljJ4FSoxQgSGaSZBt0ljaphQcKk=; b=0EWitJYQykRYlPrpJjuVXDojpCRCtfmJGiNpc4+xzI4joeV+q6Ake5n/QZ46HLQzU2 ysXFHGhOw0f0+4gc21KaeiEkHGUq0bTQJci/4L1qLHT+uih8HXZ9jk3MYKRKAJf9yw/H hxgMnxQI6MHJdOgEsiV6EIex7Bmt/wAjgh4ltMVOumhihAfqzIB0wAaD48E3Y2b9cZ58 PgaE+Qt9Yi4MLFZXn5PcO/+3dLZxbf0/5pN/VoiH6RKuZQWVl3Lr0Hdewp7i9mxmOKpe qi8l47bQZgc4HYhjMvMWv9Fhhwm0RWXnVUOkSD6d7DDfxpuV9nsbOzjmgfV3Xe1qS64x FUMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=pVlPAItp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si108092pgt.427.2018.02.22.07.00.46; Thu, 22 Feb 2018 07:01:03 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=pVlPAItp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932737AbeBVO7n (ORCPT + 99 others); Thu, 22 Feb 2018 09:59:43 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:33759 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753858AbeBVO7m (ORCPT ); Thu, 22 Feb 2018 09:59:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=FcQfC1huiiVhdKEpljJ4FSoxQgSGaSZBt0ljaphQcKk=; b=pVlPAItpIIfhtnZHXGOqXcrAP4HxQLItBv5dTi/+nZ+mLuqWzIsNLWVTQRWjHLdmbKt+cO9wexnPXywugeSgJoNvXOv1n/Ub1crlDuG0yyIhxiKdXLRbgbS6ZHlzwYRIOz+8ovWhHBV52rXmtsEmZ5wGu1SD6qNp+nRZt61qPFjycziEdvs7XFRPOt1siwlrKu3Ic23ae1gZCkZ6t55qGfEAHaIA/1woh/SSdE2dbNtwqlzsJUf0FhG492fQB9yTURYJG2y+MX0XmbJm8EOrivDIKxVhpiE+Ui/jeoDQPZ+nCuw+5TOFVgH3IX9AafUIfn/0w/OtCo1H5r/TGaBeHQ==; Received: from dsl-hkibng22-54f8db-42.dhcp.inet.fi ([84.248.219.42]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eosLT-0004rA-7e; Thu, 22 Feb 2018 16:59:39 +0200 Subject: Re: [PATCH] cpufreq: tegra186: Break after initialization is done for policy->cpu To: Viresh Kumar , Rafael Wysocki , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <77d470741dab32c2076a35253b9c0c2f0136583b.1519293292.git.viresh.kumar@linaro.org> From: Mikko Perttunen Message-ID: Date: Thu, 22 Feb 2018 16:59:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <77d470741dab32c2076a35253b9c0c2f0136583b.1519293292.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 84.248.219.42 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/22/2018 11:54 AM, Viresh Kumar wrote: > There are two clusters (2 + 4 CPUs) on this platform and a separate > cpufreq policy is available for each of the CPUs. The loop in > tegra186_cpufreq_init() tries to find the structure for the right CPU > and finish initialization. But it is missing a `break` statement at the > end, which forces it to restart the loop even when the CPU already > matched and initialization is done. > > Fix that by adding the missing `break` statement. > > Signed-off-by: Viresh Kumar > --- > drivers/cpufreq/tegra186-cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c > index fe7875311d62..771df649ceb9 100644 > --- a/drivers/cpufreq/tegra186-cpufreq.c > +++ b/drivers/cpufreq/tegra186-cpufreq.c > @@ -79,6 +79,7 @@ static int tegra186_cpufreq_init(struct cpufreq_policy *policy) > policy->driver_data = > data->regs + info->offset + EDVD_CORE_VOLT_FREQ(core); > cpufreq_table_validate_and_show(policy, cluster->table); > + break; > } > > policy->cpuinfo.transition_latency = 300 * 1000; > Reviewed-by: Mikko Perttunen