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: 129552 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230908lja; Sun, 25 Feb 2018 21:10:41 -0800 (PST) X-Google-Smtp-Source: AH8x225Xp9jmZzyqIdktNB19pPe/vk7sNx+Z6w3xi4Kfx0YGM9Xo8/Z2oqEz9HCiiwpNLuybQFL4 X-Received: by 10.98.32.200 with SMTP id m69mr9375121pfj.82.1519621841273; Sun, 25 Feb 2018 21:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621841; cv=none; d=google.com; s=arc-20160816; b=SIIR/ysjTQjB0bj/yVjAPaKtkcUXy7GlZa35jSqbChHfoYTD0d2kgQJJ5SiK3F17kO B8QMBINiJoowFUIzUjGR0FUVWJA4RjebI+H7sowxaFinP0/AQqxtOT6rwLzbhuKkf53X YvL1wUaPgoSnQ+n1mYRITR7rL67pOFLlxap1yU5XW0siV2Baf1sPoqtxXrtoXani8deE WjQhC269b6f3MwXKcXSF2NPXDMAQ7n8f25Jt+upuNFU3sFbk+o/IPCUoxSNChZNp8vue DcatKMdszrc5ASG9+7XlPV39Fo1jHcXh8OtB5sSB3axIHL12f7taI7/CUqnNF+hDaHst VVoA== 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=VGSbcuo4gsdmDUq0j8H1YRo1COuXuZ4A4oLw7LZydow=; b=vUvFwp+6vV9YDR1LfWr9AAfLx81XND+77HLT7SHi7vHgGz74hRz/T2y20uYo7DRBDx E+ifUkb1eKj0t/rgX6zvK6Rkd5l+8mEYuw1Z++3X8PLuSfUzat6JnRkEvAW2YLPxgpXn UXV4Noha5xIVd0aq1M+hby4gq8OXPSVDd2qel2ZbDHm/qCav2ACzN0HCDvHDlVx4MbNm pgRRwD1HimXPjLIhBiLBSbxcoqx+HB/0dnS5SmRflSsjNLmABf2rkv2oCK28b1sspAc9 NbHWWt8ds0SyIRaXN6aHp00W1rJ/M4eqU2aXL/qL5sAJ1c9D6rLj9/xm+jbfFcYYP61Z eLvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iDVsDDa9; 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: 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.41; Sun, 25 Feb 2018 21:10:41 -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=iDVsDDa9; 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 S1751574AbeBZFKk (ORCPT + 11 others); 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-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 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(-) -- 2.15.0.194.g9af6a3dea062 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; }