Message ID | 7d2bc4de102c81503c30a64503179c4ccebe6287.1519620578.git.viresh.kumar@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 1432E60208 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:10:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03C48292DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:10:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC6F3297C3; Mon, 26 Feb 2018 05:10:36 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 719B8292DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 26 Feb 2018 05:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hX7nC1ovtJRV8MS26zTqQVC4VpUaTqjcXjgFvKUG4iI=; b=sTraHxU6qFYwhbjt5R1m5c43h1 08NnAxw5KKviQwz6PSvvMG/wptbDhXX9HVz5sX6d6Zuf3Q+qI3wevwPCPt7d3QuPxb0J47a2UGiyV WXQFsXCJ6G2rhR40D+xna7qapsFZ5zVvbA/BjqTn/k0ovhYz7kQx0ifamoWUDrHQabmUINp4+kOf6 HgU2NOuAt64b0izAYKjpQ9m3f+X8kzBdNIQDPRieBX928oE4UWUTkK317wdOvCXWr5vvC0Xl+kK0C 1uytIW+piy2jdZGvTraYR6sMD3JzSCFLr9MYcGi4i996zk9EV3SAtQ0PoYWuvD9eOWYtizXxSiqe+ ibzlQlog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqB3T-0001Ao-T6; Mon, 26 Feb 2018 05:10:27 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqB2x-0008K4-I6 for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2018 05:10:02 +0000 Received: by mail-pl0-x244.google.com with SMTP id f23so8659207plr.10 for <linux-arm-kernel@lists.infradead.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=jkYIa3hde8xgo6ta9UPP4KZ02EWlwm2gDuwfJ8FnEKdQ8imC4OR3GQoKnnN5EGS2kf 2sAe9//B7IpMyLpdJScJSPUAkl3C8NBSH14P49kTgWmtZX1i+b0bzLgOBjJ1uV5O2tGw i0XXHBFl1oooc+7f5mGHoLzZLPCkIpv61aDg6Srl1Olk1pDc2qqDkL2zRjQDguSRsNyL wFEALp2FgXwmwl7b3fTAfHpO4sYxX7AONLSxYUM/CScTUmCstyLpxPEvIun7kzZ9zwMf YfMkqtSvzhsxKlCz09xyf1qDv7sksmYQplBYz2TMPjpN+qeyZmy9F5dY2J6mToLFPdPP SEPA== X-Gm-Message-State: APf1xPBZmmKTNA9A1sN+uxbe2j1bizpax7Clgmjdj6RnkKVO/qlYIpkK e9zQMtWh4BU6c3q+lJk8oqZJxg== X-Google-Smtp-Source: AH8x225DQBTtc/Ss1ENCM2UdpWKj2U3BXOOYstKu2c1dgqfdM5a+PR2qymZWYkc2E/bdGE5k/BHK8Q== 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> 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180225_210956_315139_C24F1DAC X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Viresh Kumar <viresh.kumar@linaro.org>, Vincent Guittot <vincent.guittot@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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(-)