From patchwork Mon Feb 26 05:08:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 129539 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230454lja; Sun, 25 Feb 2018 21:10:05 -0800 (PST) X-Google-Smtp-Source: AH8x224uyu2Ui0pMwRgOYzkgVbQV7u8MltJiz8qaEFw8mnqZE95kRMjMdbGWWt4CWciS4TM4GfZo X-Received: by 10.99.110.131 with SMTP id j125mr7556136pgc.382.1519621805845; Sun, 25 Feb 2018 21:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621805; cv=none; d=google.com; s=arc-20160816; b=BvQVj8tOYmQg0HadFhnwUVhQJ/B9q6AowPehwNAwX+NyCzluUfLqlyrTZuntnkbcKx AirIeDuaDUla7JgsvrFdYQiM7s/A2XZ1pe/oFnPIbHNqZNsxfp0Z4XYeIFhjA42MxvTS +aJLsShlk/zwG1EWPyuCFMnrcOk0039BfenV++gwfZe/aEVKy/oRbENX5Ka0HJFvy2RS qzxzROw0dSJI+BtATR3Kv0oZ/u/dPhTZZe1JHUFfbD/5PJfMXG8XpHoRng9svskTv+Gm BvOWS/UcuE5c9GmFR9C6gigJWUnSUtWTrmc3SKsU06rJWWx6ryVxYe2pZVP3OCZtdglv fBCw== 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=4Sogwb2lNk7UZvpkDPXA9TMONekYwcbfZW09UuiK0B0=; b=lhtns/oOOxB8nf+ScRO7RONkdSL6UlUw1decoTf+P8Tf+1kekitPiEvtX3NqhnRCf1 n1OzopHEj0cSY3y69xtN9fuFColzmN1AGTEYiyCGBSeddkDN2AcCX/plvR8d7iCZUIyX A1C8eQpdko16j28q8bg7FVDhz7782jmBgv29fLvMICQJOtTKKo1sZSX6QE3XpnQwk6eq StfC36kWdRcL8TW1CiYQF69EQURlaAjDagmXA01fUierbMpfNw9mb6tJGCASQg9GUHls u6yiJDRzLQXpB2Z8l9bGZCVwRiu9IZbvu852X1MgINTNYwtdOgzM+TkpvnLLcO+J21lT 8KdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LGFPgNTl; 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.05; Sun, 25 Feb 2018 21:10:05 -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=LGFPgNTl; 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 S1750839AbeBZFKE (ORCPT + 11 others); Mon, 26 Feb 2018 00:10:04 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:46913 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbeBZFKE (ORCPT ); Mon, 26 Feb 2018 00:10:04 -0500 Received: by mail-pl0-f68.google.com with SMTP id x19so8654915plr.13 for ; Sun, 25 Feb 2018 21:10:04 -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=4Sogwb2lNk7UZvpkDPXA9TMONekYwcbfZW09UuiK0B0=; b=LGFPgNTlWFFsOS1oP6x/9CDJv3rJ5wEsp8ujHrrx6SiTXw0hu3q/lKS6Kj/NTZ000u 2CGzroIo7GexBRaoEDedUaqVW1t1BLMPT140+mncwPZd2IbdckOlyFXu4pV+aG4PuPwB bsrL4IomgQvV6yTbHNkAkegUhRl43s22980YE= 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=4Sogwb2lNk7UZvpkDPXA9TMONekYwcbfZW09UuiK0B0=; b=lfp8vZaUdRMARIBIRxCrWUqFgLRvC0LVyI37pgH40ovPK3rBHUS+22b/oS92LwEGW9 gWJTdacx9vZId3iYEG+bZaEWCC09dlUoNaYgkIqNQc5EJQtaKUbgfzMPZBgkJTIQXIu7 7JK+/hnu4+ER3dDKGoXJj5o7OWXGaCfaRA9LfXNB7aSm9I3gHVsUfuu4nL4/eO5h49Ss BHb/S6N53TknWvDQ6YkuRUkJ9mcN1Ccdu3KXcpkjq1swpYrvD43IdatgwhQJ89R6p/MD eySC0+hc59qF+t2yA4BLPn0bA++pu9Vb5W+oNKMGBatp3jXrgEosKPzHllDTbzKauxth XDxQ== X-Gm-Message-State: APf1xPC8Qiq7gIs2cCm+8Pn9vtN3Dgcawi3huRmTkKyhhywcboP/ajcj /Wd9uyOKNUB22SJ3I1xuFCb07g== X-Received: by 2002:a17:902:bc41:: with SMTP id t1-v6mr9597309plz.436.1519621803764; Sun, 25 Feb 2018 21:10:03 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id h67sm2497243pfk.184.2018.02.25.21.10.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:03 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 13/27] cpufreq: p4-clockmod: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:56 +0530 Message-Id: <5a33f133f779d8ac59354feadec0bdb205720042.1519620578.git.viresh.kumar@linaro.org> 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 p4-clockmod driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.15.0.194.g9af6a3dea062 diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index a25741b1281b..911206243050 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -202,8 +202,9 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) /* the transition latency is set to be 1 higher than the maximum * transition latency of the ondemand governor */ policy->cpuinfo.transition_latency = 10000001; + policy->freq_table = &p4clockmod_table[0]; - return cpufreq_table_validate_and_show(policy, &p4clockmod_table[0]); + return 0; }