From patchwork Mon Feb 26 05:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241267 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 4DF9E60208 for ; Mon, 26 Feb 2018 05:10:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F329292DF for ; Mon, 26 Feb 2018 05:10:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33DF2297C5; Mon, 26 Feb 2018 05:10:22 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 D8AAF292DF for ; Mon, 26 Feb 2018 05:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbeBZFKV (ORCPT ); Mon, 26 Feb 2018 00:10:21 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:44691 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbeBZFKU (ORCPT ); Mon, 26 Feb 2018 00:10:20 -0500 Received: by mail-pg0-f65.google.com with SMTP id l4so5773219pgp.11 for ; Sun, 25 Feb 2018 21:10:20 -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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=jPIIfl3uCSAESBQUeP9XEivwaua5CnEaYk2bWkT4ZnK6hKkwe3eoxgaN2GVf0w4ezs zw2Yyupd12aYX1b+cLHn8a36fYqWLI+CYwJ6MXJxFukMr/lipuLJiwpW93Cdo5NOK6Cy g7MuduNoxSy5u7miLHmWBK0cCa0bMwi3SEpgA= 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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=YaO7zUH0OcgtZhXQnmCZh7kpYSJaxGNrh4tqTnqLi5ZS5+6n5PsOlxBfssi9FIvO3z rKzejVZck7mxkFarWG3Vwl8dE5zpzHytZi4b0enbzelyVb+bQEpz+Y+iiIUik89YhhUA YMH+cvrpHhPFClzBVA0WNow+Z+SP5uxDNI21Ut7K3IJ22BUZc3Zhlpe/F6jv/Ih1LhTJ cH0Jsb6d9a8cSP1rXnyQeOjDn6dR2AKGQkfjQrR7oC8p1uKmFLKbJ5rhP9Er/m5blz/B i6kHcPWW0sUyWaQEPVY3ID0v6reJGtZn1DMV2c7lNgdp3304X1T1y/p26qm2c2rxY2u/ Ui3w== X-Gm-Message-State: APf1xPC9VHVhwGeruaLqO3bhgkqhBqSB3iF7pld3yM6NH5YBPA7TJyan w4CMpv9CDHPMC8rhDdG5sTq1MQ== X-Google-Smtp-Source: AG47ELvk78Gn3++4BcBpq+UIHfsTibDMZlXP8shP7urVT1gJ4ZNvT06C5v8MPAyIHYPBLETYLfZZ5Q== X-Received: by 10.98.238.2 with SMTP id e2mr1454610pfi.68.1519621820057; Sun, 25 Feb 2018 21:10:20 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id h17sm6362548pfd.64.2018.02.25.21.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:19 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Kukjin Kim , Krzysztof Kozlowski Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 19/27] cpufreq: s3c24xx: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:39:02 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 s3c24xx driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c24xx-cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 6bebc1f9f55a..3f0947e119a9 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -351,11 +351,8 @@ struct clk *s3c_cpufreq_clk_get(struct device *dev, const char *name) static int s3c_cpufreq_init(struct cpufreq_policy *policy) { policy->clk = clk_arm; - policy->cpuinfo.transition_latency = cpu_cur.info->latency; - - if (ftab) - return cpufreq_table_validate_and_show(policy, ftab); + policy->freq_table = ftab; return 0; }