Message ID | 0f944c0a7e521d42e7cd008e7341cf5515856076.1519620578.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230205lja; Sun, 25 Feb 2018 21:09:44 -0800 (PST) X-Google-Smtp-Source: AH8x225WuGLtzpLhj5iIKxb6vWavysZfmWCNsE7njuiL8jEezR02QWp6EFSgvT560Hh96k4kF5Hu X-Received: by 10.99.113.75 with SMTP id b11mr7605283pgn.271.1519621784330; Sun, 25 Feb 2018 21:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621784; cv=none; d=google.com; s=arc-20160816; b=ne4FEPZhi/DJETk6+WbpKnz91nVBVZhy5q++vYX9L9zpv5LniddLIPNY7sxHvBe30y Es4o5HfhMdZw2iO/ZUVqbJXQoNYaXn3zJUO+cYvS9b1QKDLIdOmbOnq+gdtkFNlmNfcL CLSrVAnwL88piRbA6MzyFeY1DWgqZUzirkn5qC7DlIIawwo1Tp+C7RtnAlK/mC4qt3QQ 4ENOo5x5eDnZKK0N+kv19ipIHSwtVPEmexY39qs2fZwKjUW3QHiymaQnkb0DjCOFuJy/ vd8hBGG1VyVdNGaWs9glzAk3WF1lURNnpwPGeriwuOdsMCvhn9hJpZtHU320ynw7zVMI 21jQ== 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=8GlGUGDrjDrrPYpBOSD9KYsLzkT12xlX2ILt6IAbjnY=; b=gfLQQOipp9BEAq377WqIvL8SRUofiDTfvdX/cVLmS9HZFTuhbwRXg8jJ9x/nsNH7VR Q651ZtOtt7nTiCWPaG9KEvzMst2Xadvd2sGpkh3WGH3gytczUmhAdfLBEYNGrkgFLKkH KwleiJAtsLAsMAOOT4z3M0kFcBeoFg27o/X8027gi+/Kw8+GnUnGabL8HCOSCr3dJpWA 5mKgaFWkKfuQi8w+rlLLOCH5b6xJqliuW9BhLkJCYDfqmc+sw6GZl6KsCJ0HYkQBGuKH OrKa0SdvOUF+bd7nFz2SRg9WQhwAzFYLicAqNnQSD/GvHRo4orE0+8X1zEr7d7u+j+5G Po7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iiTrvLAV; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-pm-owner@vger.kernel.org> 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.09.43; Sun, 25 Feb 2018 21:09:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iiTrvLAV; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751319AbeBZFJn (ORCPT <rfc822;thara.gopinath@linaro.org> + 11 others); 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 <rfc822;linux-pm@vger.kernel.org>); Mon, 26 Feb 2018 00:09:42 -0500 Received: by mail-pf0-f194.google.com with SMTP id j20so2648649pfi.1 for <linux-pm@vger.kernel.org>; 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-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 <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org> 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: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1519620578.git.viresh.kumar@linaro.org> References: <cover.1519620578.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
cpufreq: Stop validating cpufreq table in drivers
|
expand
|
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 = {
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 <viresh.kumar@linaro.org> --- drivers/cpufreq/blackfin-cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.15.0.194.g9af6a3dea062