From patchwork Mon Feb 26 05:08:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241261 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 04D5260208 for ; Mon, 26 Feb 2018 05:10:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC4C292DF for ; Mon, 26 Feb 2018 05:10:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF17B297C3; Mon, 26 Feb 2018 05:10:13 +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 7EE45292DF for ; Mon, 26 Feb 2018 05:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751960AbeBZFKM (ORCPT ); Mon, 26 Feb 2018 00:10:12 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35619 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbeBZFKM (ORCPT ); Mon, 26 Feb 2018 00:10:12 -0500 Received: by mail-pg0-f66.google.com with SMTP id l131so5778696pga.2 for ; Sun, 25 Feb 2018 21:10:12 -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=6j740EtZOnvUCIAV01E5dh8Mc4ezSRm+HqbucwEq+9s=; b=bW/b9xQlGre5b9yHY3njU0bnrIcrGnNjrDcDBaxZCeiBu5mMAhAaPh3WfGGeVknL7C 4pSs8LS78KjlcpYOxUnHOvebBV5Hzye4ttWsz9ocnrBIQrvVZXFOWBWaPPyuBcFAzBVE SAU0Y72ckmwWVqK8Us9K40ZEjIVyghUhbUmqc= 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=6j740EtZOnvUCIAV01E5dh8Mc4ezSRm+HqbucwEq+9s=; b=njWGZhMvlUeBr9jXjLkzKojFOXDyBfW2j9Q8A0RxNhmy6dbJmESMKwtrXfOizEMFXm ZRYAblf9NofovlwSL4httsvw9vyNn6d2QvNVdJg8kpqU+oy2U9dNZkeDGTlF/RGL1I+P 4Tbk4ujuokGLewtyBak+zMOqORPR3SqZAskLu2lX9cW2Yw4Pcq3ranAIHrXNd2Rn9klG twGJ8PhaCVy7BhP883lR36M1JXVBC+tEVWbMklKm9bizwG0LMNEzSWpCaIv19FEX+Brh 7Eriplu0TXv1NFcx9w1cUjg81ES1bqH0lQGAafd6FwharEPIBoR0QwkidJ+wAO5cGy06 du7g== X-Gm-Message-State: APf1xPArlgnyU3jvs/MXHKcg/428Wo3fS36AyvtO3hRk/nT8rhX4sWap 2m0EAHwqBSADPyVJW6bQU0HJGA== X-Google-Smtp-Source: AH8x227IPp7hL2F0FhHdcc2hvxslWopPZEC2liaERxXvq2HSTaDuNcnWDY/BXTR9HcXqDNAAwvyMJA== X-Received: by 10.101.101.204 with SMTP id y12mr7589579pgv.450.1519621811939; Sun, 25 Feb 2018 21:10:11 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id y6sm9963345pfg.71.2018.02.25.21.10.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:11 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 16/27] cpufreq: ppc_cbe: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:59 +0530 Message-Id: <801dd1ab84eb8801d4050203e0374b55438a95bc.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 ppc_cbe driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc_cbe_cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c index 5a4c5a639f61..41a0f0be3f9f 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq.c @@ -121,9 +121,8 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); #endif - /* this ensures that policy->cpuinfo_min - * and policy->cpuinfo_max are set correctly */ - return cpufreq_table_validate_and_show(policy, cbe_freqs); + policy->freq_table = cbe_freqs; + return 0; } static int cbe_cpufreq_target(struct cpufreq_policy *policy,