From patchwork Mon Feb 26 05:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241269 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 A861A605F3 for ; Mon, 26 Feb 2018 05:10:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99E69292DF for ; Mon, 26 Feb 2018 05:10:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EFA4297C2; Mon, 26 Feb 2018 05:10:22 +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 27C0F297C3 for ; Mon, 26 Feb 2018 05:10:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbeBZFKV (ORCPT ); Mon, 26 Feb 2018 00:10:21 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38683 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbeBZFKU (ORCPT ); Mon, 26 Feb 2018 00:10:20 -0500 Received: by mail-pg0-f66.google.com with SMTP id l24so5782225pgc.5 for ; Sun, 25 Feb 2018 21:10:20 -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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=jPIIfl3uCSAESBQUeP9XEivwaua5CnEaYk2bWkT4ZnK6hKkwe3eoxgaN2GVf0w4ezs zw2Yyupd12aYX1b+cLHn8a36fYqWLI+CYwJ6MXJxFukMr/lipuLJiwpW93Cdo5NOK6Cy g7MuduNoxSy5u7miLHmWBK0cCa0bMwi3SEpgA= 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=GKWOcNcl+rkljkVs8QNmwW3X4GVmKiHgpum8Jjbbpco=; b=e3STQVKxZb8aiIqbIl0MWi3Rqad4DwVPBm0jSQWIQrMXJeI0sz/kHO8KcNIQqv+pSV XoX7TQAzQ40zDIrZjGMP4/QJ2vnuT/yIY3ZPKBTtmwRAFqSqvIyU364rV7YgI0MZzfqU il8UDEPQtwMs3sN7ZxczTYEZ8M90s/6cSmpjJhLKxdi06iModoKkYgwsWBlssBYgTw9D j71WOLKCdIMBa3vaH5NNatw1Q+IZMArLKfXP0zzKvQIYcta9U42/uw6x0SnMlg1BfS+K C7YBZrfGXASNXeKZvHWMahd6cKVp2rJY6WGW/tQbAiscecwlZUsDp11wGozQQhpnFqO7 +pxQ== X-Gm-Message-State: APf1xPDp9Ec8pdjWAUYo0uAmi4auXz3BUFnwnLV9u8uQ3wUR1iU9PZpF pdFHZX7hHruNgGjjoS9JZ6kGHg== X-Google-Smtp-Source: AG47ELvk78Gn3++4BcBpq+UIHfsTibDMZlXP8shP7urVT1gJ4ZNvT06C5v8MPAyIHYPBLETYLfZZ5Q== X-Received: by 10.98.238.2 with SMTP id e2mr1454610pfi.68.1519621820057; Sun, 25 Feb 2018 21:10:20 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id h17sm6362548pfd.64.2018.02.25.21.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:10:19 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Kukjin Kim , Krzysztof Kozlowski Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 19/27] cpufreq: s3c24xx: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:39:02 +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 s3c24xx driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c24xx-cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 6bebc1f9f55a..3f0947e119a9 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -351,11 +351,8 @@ struct clk *s3c_cpufreq_clk_get(struct device *dev, const char *name) static int s3c_cpufreq_init(struct cpufreq_policy *policy) { policy->clk = clk_arm; - policy->cpuinfo.transition_latency = cpu_cur.info->latency; - - if (ftab) - return cpufreq_table_validate_and_show(policy, ftab); + policy->freq_table = ftab; return 0; }