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: 129545 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230661lja; Sun, 25 Feb 2018 21:10:22 -0800 (PST) X-Google-Smtp-Source: AH8x227YIPHBZkNiqGn8eUE/I4Qds1gr2Ztt1t+bnpUf+3JK2b/mwD6n7/A2HZPA0za1KWXRIoCe X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr9180744plu.8.1519621822087; Sun, 25 Feb 2018 21:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621822; cv=none; d=google.com; s=arc-20160816; b=PHHa760D395D7Qz+FjHB6BO1hYJ125BIvdnBmF0fvqeY/sag9l0KienZQX0fday58X 1/rzo7564qKfxah18SVCAzluw/dUAg9bA71FR9t37xZ+v+G41J1wphFkUnDd+DzKNokQ VbbLNrm0FsruABTwVWuMl0lVzQux863HcewxfBfn1QyRKYnNI1Cp5y5gF72xqRSEDKgz giX0WOKS/bxJJuY/q1wXv+e2/qYAE0GB1bElpausMta3uQftgL/YHipwzgmzgWTGsTam bAsI5VqMTzWzOU8627yDY+3etWECju2ZFe/Qm3/uK+bIzJtKGB3Ez9zNK+lvPNFUFH7T kl4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8p9RsbnwYxFPxXo/jv8sMzWBI3O5QUn3HdShdJzathY=; b=dQC3FXdDrjsfSR79236tC660VJe8++4hQy3VLwGhhM/dkRCwvkHLNa8vTUekUjbEdU bB7T4fpa6hBdF3+L/Timh6ziNW0ZyeAeQUr13Wp+Ye5YHaq3FcDlZRtYikcRoElHQ9E3 TvA4VfVn0XK16H9GpWjBEM3moNKj2+t/Vi5dU/EuoCCOLrMVVqmEqB9mHjMjzK5TbXS8 1M3jHEozMsa0an9pJtlnwE8AS30dUCNZL8DbbHuYY1snirM5O0F4xyOlMCpC9rUpiiec Zc7+MmhMuLjKdDQ9AZRoNbvIntADS9Ehs556y7rNgCVTYkL+6fgovODRxUBgasD1V2VP 65rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jPIIfl3u; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si6199354pld.217.2018.02.25.21.10.21; Sun, 25 Feb 2018 21:10:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jPIIfl3u; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbeBZFKV (ORCPT + 3 others); 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-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 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(-) -- 2.15.0.194.g9af6a3dea062 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }