From patchwork Mon Feb 26 05:08:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 129542 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3230541lja; Sun, 25 Feb 2018 21:10:14 -0800 (PST) X-Google-Smtp-Source: AH8x224B0VdSjIpRLMjDwqBez+lDez6qJWP3RP+VQGg6Xm3tO6G5D6gCHzwe1JSozp7XVOY/fO5D X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr9296714plb.170.1519621813808; Sun, 25 Feb 2018 21:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519621813; cv=none; d=google.com; s=arc-20160816; b=lBPbltJKVOCW/fkyVCvHjKFeSBWtVQHAsKKxydiVvvLeXw0nDc3BUmlVf3PveO/aVK e6DLZ2PZgsxkFenYcba6N7KKIMJt+1zXh2euK8stgs3f1W7+yLhpH8ArWERa6WSqiZMY LINZNyozUyfT6uQEHLPcDu3yZhyMbXecM14Ws7xtPxOl9c6bMzGlBfReyFR6n2eVIvCb MkzBmYWEz4M3yRdhJTrZtuB5kp9dL+VARu3pmzmFK3zd/5OJ5+TGWDC2tWDTPzpGPvXd mqQQTDB6oB7uFkldvVqGg51JjxejhPrVDbJky4zDfzaSg8JX0lcg8Kna7P2DjEr5Mwlw 2H7g== 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=6j740EtZOnvUCIAV01E5dh8Mc4ezSRm+HqbucwEq+9s=; b=VcOxlJJjnpbqHWn4vrAavYCKLTiMPdl+T+V4Nzo/fnI9PgWE0Paw0dgDsrWTSh0e12 oH1Cd3Oh3iu3eWNHBa6hFHf5Uv+0xh5YsF90oZX+oRsy7LG3nm8TPWobM7szSmFCwGMM gu2I3yBJLW+yck7cvywy7f2j8tsUyPyDhfILkxc7rgtsYWKNLPB4qXxpyFRBcVuWPpnH oyZ1h/m1xhURu0XwaUSsmVCODNh8pERTm/v8M9aJ8Grb05IJJz10Pujr3GTKvvN8XEES CDDk/tZQiBEXjyHk/uoSNRQZorTDA15HKHAuXJGUn0AKEilTp0CKMwuMkAqiBvcd6LZn s/yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bW/b9xQl; 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.13; Sun, 25 Feb 2018 21:10:13 -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=bW/b9xQl; 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 S1751960AbeBZFKM (ORCPT + 11 others); Mon, 26 Feb 2018 00:10:12 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35619 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbeBZFKM (ORCPT ); Mon, 26 Feb 2018 00:10:12 -0500 Received: by mail-pg0-f66.google.com with SMTP id l131so5778696pga.2 for ; Sun, 25 Feb 2018 21:10:12 -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=6j740EtZOnvUCIAV01E5dh8Mc4ezSRm+HqbucwEq+9s=; b=bW/b9xQlGre5b9yHY3njU0bnrIcrGnNjrDcDBaxZCeiBu5mMAhAaPh3WfGGeVknL7C 4pSs8LS78KjlcpYOxUnHOvebBV5Hzye4ttWsz9ocnrBIQrvVZXFOWBWaPPyuBcFAzBVE SAU0Y72ckmwWVqK8Us9K40ZEjIVyghUhbUmqc= 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=6j740EtZOnvUCIAV01E5dh8Mc4ezSRm+HqbucwEq+9s=; b=njWGZhMvlUeBr9jXjLkzKojFOXDyBfW2j9Q8A0RxNhmy6dbJmESMKwtrXfOizEMFXm ZRYAblf9NofovlwSL4httsvw9vyNn6d2QvNVdJg8kpqU+oy2U9dNZkeDGTlF/RGL1I+P 4Tbk4ujuokGLewtyBak+zMOqORPR3SqZAskLu2lX9cW2Yw4Pcq3ranAIHrXNd2Rn9klG twGJ8PhaCVy7BhP883lR36M1JXVBC+tEVWbMklKm9bizwG0LMNEzSWpCaIv19FEX+Brh 7Eriplu0TXv1NFcx9w1cUjg81ES1bqH0lQGAafd6FwharEPIBoR0QwkidJ+wAO5cGy06 du7g== X-Gm-Message-State: APf1xPArlgnyU3jvs/MXHKcg/428Wo3fS36AyvtO3hRk/nT8rhX4sWap 2m0EAHwqBSADPyVJW6bQU0HJGA== X-Received: by 10.101.101.204 with SMTP id y12mr7589579pgv.450.1519621811939; Sun, 25 Feb 2018 21:10:11 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id y6sm9963345pfg.71.2018.02.25.21.10.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:11 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot Subject: [PATCH 16/27] cpufreq: ppc_cbe: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:59 +0530 Message-Id: <801dd1ab84eb8801d4050203e0374b55438a95bc.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 ppc_cbe driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc_cbe_cpufreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.15.0.194.g9af6a3dea062 diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c index 5a4c5a639f61..41a0f0be3f9f 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq.c @@ -121,9 +121,8 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); #endif - /* this ensures that policy->cpuinfo_min - * and policy->cpuinfo_max are set correctly */ - return cpufreq_table_validate_and_show(policy, cbe_freqs); + policy->freq_table = cbe_freqs; + return 0; } static int cbe_cpufreq_target(struct cpufreq_policy *policy,