From patchwork Mon Feb 26 05:08:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241239 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 7157160208 for ; Mon, 26 Feb 2018 05:09:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63272297C5 for ; Mon, 26 Feb 2018 05:09:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58059297C8; Mon, 26 Feb 2018 05:09:44 +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 E16E4297C5 for ; Mon, 26 Feb 2018 05:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbeBZFJn (ORCPT ); Mon, 26 Feb 2018 00:09:43 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34755 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeBZFJm (ORCPT ); Mon, 26 Feb 2018 00:09:42 -0500 Received: by mail-pf0-f194.google.com with SMTP id j20so2648649pfi.1 for ; Sun, 25 Feb 2018 21:09:42 -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=8GlGUGDrjDrrPYpBOSD9KYsLzkT12xlX2ILt6IAbjnY=; b=iiTrvLAVXXlyOdxqANCZnM/8Jv+fHkSqCJ/mt0mleFLYFfDlsTrCjseAiuiP5Bgvp6 B4LA4BO0jBuSX1rbRfWLBPGDDwuxqcuoFFtM3ZrcmQFkE+f92PisgVMpAtPGbJ4M3iLY aTvgR+XXkjcDxINvB3QW+vrUvFHjQpH2FzRxw= 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=8GlGUGDrjDrrPYpBOSD9KYsLzkT12xlX2ILt6IAbjnY=; b=Kh19mgq+RSOCtsfcWhlykI9cQ/gGoME4GtUQ8gqTuzQVgFjraQ3E+mi+K87hI+yHBA 5btQx+XnqdeFRst6b2riBk5nDGX/O+YfhVN7y7KB1pmOYxcEsLd27lP4h+/sjLj8Bv1C Bll1j8ICZn4euH9gpnfTo5tY1QDJznU94o1lAiQR9Wl3r/yobimvwIsdo3TWRWM2L2+j 6d0gkQgqd7X27HHv1Gz4cqesRZB21uhmKiw34EUS8YdVUu3uwuBQ9ar/J8CcKmuRyCVR f7bng+/Aupu7t9Nwn055WcOE1v1fXdZ31VkCoSw8M5CvIRLSyeo9TWignJnrJPFNJ8Lw zwhQ== X-Gm-Message-State: APf1xPDbE5z7GyXFyH2rbKPLtTDF28kiPRL1SYjdqtugmv6RoV6yLFIt kN/ptbLEawHmWFOjj6WaxDQl4Q== X-Google-Smtp-Source: AH8x226Wo6tDh+3wGAF9ZhjMMoCzmvTi2QhDMdjUq0Datylh5jlEz3XlgL/WkofqkiKk7ZMeqQZoMw== X-Received: by 10.98.117.139 with SMTP id q133mr9301842pfc.64.1519621782144; Sun, 25 Feb 2018 21:09:42 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id f4sm21106715pfn.82.2018.02.25.21.09.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:41 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 05/27] cpufreq: blackfin: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:48 +0530 Message-Id: <0f944c0a7e521d42e7cd008e7341cf5515856076.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 blackfin driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c index 12e97d8a9db0..3f9d96c0f37e 100644 --- a/drivers/cpufreq/blackfin-cpufreq.c +++ b/drivers/cpufreq/blackfin-cpufreq.c @@ -186,8 +186,9 @@ static int __bfin_cpu_init(struct cpufreq_policy *policy) bfin_init_tables(cclk, sclk); policy->cpuinfo.transition_latency = 50000; /* 50us assumed */ + policy->freq_table = bfin_freq_table; - return cpufreq_table_validate_and_show(policy, bfin_freq_table); + return 0; } static struct cpufreq_driver bfin_driver = {