From patchwork Mon Feb 26 05:08:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241237 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E1B9260208 for ; Mon, 26 Feb 2018 05:09:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1D5D292DF for ; Mon, 26 Feb 2018 05:09:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3E9A297C5; Mon, 26 Feb 2018 05:09:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48848292DF for ; Mon, 26 Feb 2018 05:09:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbeBZFJk (ORCPT ); Mon, 26 Feb 2018 00:09:40 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39930 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeBZFJk (ORCPT ); Mon, 26 Feb 2018 00:09:40 -0500 Received: by mail-pg0-f66.google.com with SMTP id w17so5775982pgv.6 for ; Sun, 25 Feb 2018 21:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=GAkohg+ki3fiuOX8bkbde+YORPX1kQnv7YBut49p0tw=; b=UDTFWjVHF3mQnVRzdx1efZYj/2momdGrzp9vkTEBzcdK7fqB3TJBd46PNkDQVATkKO XYwPHxyZqURkyJwiD6igSmYB0Rn/gkl8EpKyJuMm7FIv4VHLZMg0/G7IjbrBqPMxGOmO YGyRvGDwnzoszJtICv5YQRQvwspbTChctw5SQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=GAkohg+ki3fiuOX8bkbde+YORPX1kQnv7YBut49p0tw=; b=KsP0mqf1R66lv42/k2gKEvCTX2B4cvLHe/NteK3/j9T+FXGEgp446eHeD1yge+SdWz 1Y28egZo+vKLl6wl49Ovkqy5o03RCil3Tnk1Jv04BdsKJzDzFqC09nJ8ZQnjXiIHSWN0 Zs1rjbWrm986RhNkgM3zaggpk3bqHzU89dcI1XwqC8kKWct5szn8S3PK+vz6moQflKnw 3vsCqF9IpMkCmHXniZGtK5UVWrVJaoSZKtIf1Og1bNi6p/ShJWqCiJoOUXP4pI8pXEL4 IRJxfY/AAE8U1gARZiLa0zt/ShZIe7JJCesTYFfnCBsNqoXXzWfFTWXEdgR9dRXtrtZ+ kKTw== X-Gm-Message-State: APf1xPBjsV/2lqzak/NgKtPlHos/YlO0tMGNoALuInonpS4/3HDmuoyp DmKRDvKPr1Zp8PHs6czr1SqjRw== X-Google-Smtp-Source: AH8x224vDzA4L7tkBaqUVH7Tn9bm91XLunUTr5Jtahkjad7k1YAofPoOpTruvQt96JrNXHfp6YTU9Q== X-Received: by 10.99.95.15 with SMTP id t15mr7339692pgb.183.1519621779504; Sun, 25 Feb 2018 21:09:39 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id 191sm10703837pfv.167.2018.02.25.21.09.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:38 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Sudeep Holla Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 04/27] cpufreq: arm_big_little: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:47 +0530 Message-Id: <2380b45067ab61f982cb0e75ed59d032748f04b2.1519620578.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The cpufreq core is already validating the CPU frequency table after calling the ->init() callback of the cpufreq drivers and the drivers don't need to do the same anymore. Though they need to set the policy->freq_table field directly from the ->init() callback now. Stop validating the frequency table from arm_big_little driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index c56b57dcfda5..1d7ef5fc1977 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -483,14 +483,7 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) if (ret) return ret; - ret = cpufreq_table_validate_and_show(policy, freq_table[cur_cluster]); - if (ret) { - dev_err(cpu_dev, "CPU %d, cluster: %d invalid freq table\n", - policy->cpu, cur_cluster); - put_cluster_clk_and_freq_table(cpu_dev, policy->cpus); - return ret; - } - + policy->freq_table = freq_table[cur_cluster]; policy->cpuinfo.transition_latency = arm_bL_ops->get_transition_latency(cpu_dev);