From patchwork Mon Feb 26 05:09:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241285 X-Patchwork-Delegate: rjw@sisk.pl 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 9511F60208 for ; Mon, 26 Feb 2018 05:10:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86655292DF for ; Mon, 26 Feb 2018 05:10:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B294297C3; Mon, 26 Feb 2018 05:10:41 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI 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 11FE0292DF for ; Mon, 26 Feb 2018 05:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751574AbeBZFKk (ORCPT ); Mon, 26 Feb 2018 00:10:40 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35111 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbeBZFKj (ORCPT ); Mon, 26 Feb 2018 00:10:39 -0500 Received: by mail-pl0-f66.google.com with SMTP id bb3so8660767plb.2 for ; Sun, 25 Feb 2018 21:10:39 -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=VGSbcuo4gsdmDUq0j8H1YRo1COuXuZ4A4oLw7LZydow=; b=iDVsDDa9RYRg/wScGvTjEV8Bfegr49RfYIV+GJfZy4KeDRHug+Y65jnrWngcfphc+C sRcc8VAax4xRvU8EK1flg5uZuhtS6UPha35YJAKfVYdE2jN1ni5xJzZtmSBK2Ewzzu6V AR6aLpMO9cU9Bpqttgo1N3JL87x65pey76gZo= 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=VGSbcuo4gsdmDUq0j8H1YRo1COuXuZ4A4oLw7LZydow=; b=K709e/+f6uOvFTZ11nvG/aTMBxtF4i7StX7OiAmW2mY5vax21NMJz1xLTTPc61fAKR RFarbJNzHuSilwG6cdFG4pRsP3fycwlAbaIMNBmfFw8PhLeX9pMc2PUFk9uM+5/e+seb heeulRu6A6PLzwaGU6wg12yHMrncnmivDwd4eLn3TLQCkrkmMhgDKPoTpDmH2rsy8pRj I9gokqmW/O305LLO0YEP9ERD5CWJBn16T7+8/nmcAjn42K6vTCbWeSAf5NXZ2ina+z5B NZmv7V432vGVrEekAiOPH1Qb8Rcd8RgJc0AzAweI5ca2vTTpfZVoQV1hZyIEIkre/igN vdwQ== X-Gm-Message-State: APf1xPARyI8LvJR3ny9kMBLAmvy1TK9zqGFIWCZowezSUfg88PUjKxe+ X6Q+vgl1ij9GjyN3tXl4gJSZOQ== X-Google-Smtp-Source: AH8x226F3QtsHTctKcDQB+nV3Nd4mJBg+Zrk4AieMe7Ipt+AymZ+P43sTCDxeQvYHKfG4LQUV418dQ== X-Received: by 2002:a17:902:b210:: with SMTP id t16-v6mr9368894plr.373.1519621838910; Sun, 25 Feb 2018 21:10:38 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id b88sm15788959pfd.108.2018.02.25.21.10.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:38 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Thierry Reding , Jonathan Hunter Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-tegra@vger.kernel.org Subject: [PATCH 26/27] cpufreq: tegra186: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:39:09 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 tegra186 driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra186-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/tegra186-cpufreq.c b/drivers/cpufreq/tegra186-cpufreq.c index 771df649ceb9..1f59966573aa 100644 --- a/drivers/cpufreq/tegra186-cpufreq.c +++ b/drivers/cpufreq/tegra186-cpufreq.c @@ -78,7 +78,7 @@ static int tegra186_cpufreq_init(struct cpufreq_policy *policy) policy->driver_data = data->regs + info->offset + EDVD_CORE_VOLT_FREQ(core); - cpufreq_table_validate_and_show(policy, cluster->table); + policy->freq_table = cluster->table; break; }