Message ID | 7d2bc4de102c81503c30a64503179c4ccebe6287.1519620578.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230229lja; Sun, 25 Feb 2018 21:09:46 -0800 (PST) X-Google-Smtp-Source: AH8x225lkwBpvYYZwAyVfts1Kvt17e89dqB6Ih5Wv/YjQ7IBigwL2exksCI1Zjt6j815KiWqlDaO X-Received: by 10.98.83.6 with SMTP id h6mr9457714pfb.174.1519621786731; Sun, 25 Feb 2018 21:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621786; cv=none; d=google.com; s=arc-20160816; b=prUjlcP3OyWkZfuFUqTLJPqtg/l1TB5T7nao+SE6XaFQYn3/XcA1qK2m/9igmdCZQa I1plrYu3CAw9QXcQ79R9yVRB4LqicDzm7hcaIbySoX6wKxCmgsX6GZLToiTLYgjEo8NL PzG/SPk8euw3le21GC9CFfR4XqifJYGvKQQdamly3WCek8Ag2YTDXFJjeMScxE4L9JR2 J/e+mSkI7LrJH95bEQoELAoHAC69eXr+a6iRHVz18fYuQztidX7QctcN9biSLuGo4/m+ d7/pgJQFsbcmeZZxl5qZsiOppryvasYnV2WTcbAGDrZd5yhbKngUfcWgNC7FG/uwx0R/ i17A== 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=mbM/nQwKbDGCgT5aGrfXK+B80WlDzF6HIV3v2fYFi8Q=; b=eqFFC/wZ+22XPCSyFjnZaCj2pc+26azompmL3d37VMc+KdA1kx0fuG7K9lzRCjzwFs S4fqeoL469tQMmWpwWYYLX8HXDRvGl1mXHbWhX3ADwLbz3huWgpn7N3cji96fec38JmP Wjd3CodDXJ/1hTvmCpxG+jhQ6dTUSn5Ek3AON7hVOntFY4NBpr+B/S45yUuecJb4Q/h8 HK+DHO9EDlk4c4UHPDX+mLoSgW2HtfGn27SnYWK34WrFQHHwcjKw2dJgT3AJuLmRSp2E 2XDw3vxh+YyXHk+0XaPxEp0CU9Ba/wxrfYbco6ov6onqvm8gDyRut2eswHxJdfNYlY0R eo7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I9gbsi9z; 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.46; Sun, 25 Feb 2018 21:09:46 -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=I9gbsi9z; 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 S1751671AbeBZFJp (ORCPT <rfc822;thara.gopinath@linaro.org> + 11 others); Mon, 26 Feb 2018 00:09:45 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:42127 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeBZFJp (ORCPT <rfc822;linux-pm@vger.kernel.org>); Mon, 26 Feb 2018 00:09:45 -0500 Received: by mail-pl0-f66.google.com with SMTP id 31so8648973ple.9 for <linux-pm@vger.kernel.org>; Sun, 25 Feb 2018 21:09:45 -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=mbM/nQwKbDGCgT5aGrfXK+B80WlDzF6HIV3v2fYFi8Q=; b=I9gbsi9zkHiGgj/HFP0AmBWJKTpxFGBvkFgdZTLjKEX2M/dQZgF7ysYfXUvhz5Pak2 YeAUcQOq0c29c64amrFQDL5MlnIXMOS186d2EkF+eFi1Dfhf8OlJGwVCaQEUyPc5VbmO 9bjpDXcHIhUjwtmnDjAi00avAzaQN88C+Zji4= 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=mbM/nQwKbDGCgT5aGrfXK+B80WlDzF6HIV3v2fYFi8Q=; b=K2ztJFlwYbtKMMmQy/UwFHZqCa5R2VAA0cA84hEFqa3KejRvT0jsh82HMojx6irpyg FwLTvmsRHWzEEicQYGTQzcX600wTgGpoxaEkz6rP2OkHo5rUaeIDbBF3r4Z97zy4Tr7P XnYGygYizXyk5yOGCU9F3Ouk9PBQpkxgEUeLj2upIT2BisdYRvG5VXExHed+xDWmzQM+ oOVfYll81UV0qf/YTgI4lEuDvcD7jDqj51eIo/DsE7mdOrsscaRUBeytKh6Sx0m7DZsm N36IkXaF6XpgtIPo6aMmZVB3NJAAHkmEaljvw9W15JpcgLqkS4HOf8MiTvA7EQKX9W6A KS/w== X-Gm-Message-State: APf1xPAVliP7ueK3RGZQDNHp18t+3IZE4jIKyrZrAiPwpGqJl0TLxhYF PikLib3JOt8Uu2GPRelAAAUAqg== X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr9435428plb.77.1519621784945; Sun, 25 Feb 2018 21:09:44 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id 14sm16389077pfi.132.2018.02.25.21.09.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:44 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net>, Markus Mayer <mmayer@broadcom.com>, bcm-kernel-feedback-list@broadcom.com, Brian Norris <computersforpeace@gmail.com>, Gregory Fong <gregory.0xf0@gmail.com>, Florian Fainelli <f.fainelli@gmail.com> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/27] cpufreq: brcmstb: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:49 +0530 Message-Id: <7d2bc4de102c81503c30a64503179c4ccebe6287.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/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index 7281a2c19c36..6cdac1aaf23c 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -902,11 +902,7 @@ static int brcm_avs_cpufreq_init(struct cpufreq_policy *policy) return ret; } - ret = cpufreq_table_validate_and_show(policy, freq_table); - if (ret) { - dev_err(dev, "invalid frequency table: %d\n", ret); - return ret; - } + policy->freq_table = freq_table; /* All cores share the same clock and thus the same policy. */ cpumask_setall(policy->cpus);
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 brcmstb driver. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.15.0.194.g9af6a3dea062