From patchwork Tue May 31 11:20:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 68916 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1882446qge; Tue, 31 May 2016 04:20:45 -0700 (PDT) X-Received: by 10.66.153.209 with SMTP id vi17mr54662105pab.0.1464693634623; Tue, 31 May 2016 04:20:34 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i71si43259185pfd.11.2016.05.31.04.20.34; Tue, 31 May 2016 04:20:34 -0700 (PDT) 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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603AbcEaLU3 (ORCPT + 14 others); Tue, 31 May 2016 07:20:29 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35521 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753588AbcEaLU2 (ORCPT ); Tue, 31 May 2016 07:20:28 -0400 Received: by mail-pa0-f46.google.com with SMTP id fy7so54068929pac.2 for ; Tue, 31 May 2016 04:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eM4ifL5Pzc2iWBd1+WjMHKgjvwZz56M6uQVYbo+tqCE=; b=SVSxuLuqU4F188lrNB9Triz6EAKz126RKAaBAFnR57vrJRhU5egpgClZsrgk0dOQh0 +qSn094fu125+YXg0Q/xOr6Vwyb9ZK4uLLtkbUxnQGtZwCCIgYqxtj5z0o1zzyB6E+J5 peqNSEuVgYCqMGc8Q/m8mZBeXYGnvuz0prUPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eM4ifL5Pzc2iWBd1+WjMHKgjvwZz56M6uQVYbo+tqCE=; b=XORqMQgnFIilS6QPj1U906ULKXe4Sk9my7j4Oh7HQDPMzeIMLR3T+UABtmJbeNTUjM apD8PJ53lFPXzjhFFMnnKfi76snfvVVUzIFyiIJ2UVfTlW0QMX6sBZA/nUjLJvX+koB1 dHuTlsOuwqBBNqYLN9H5siTXMxRrSOnoWdqx6B7gek7C+S9jZT+YRa4UvzgnmPMMZbjz BzTaVU0PZzxVrbLA0TKkAfyNJpg3eK0ZCMc4b3iJGT/JoSTUFlLJIw8EgyKGBntFHr+P v6Vicwz2Aq6CPOS4QyRY+Svc2iPsRlmMzJtEI4Yl1wNATMVQP5y/tW+/WwtgupazW+VM teNA== X-Gm-Message-State: ALyK8tLPRRJhpJiqELJDGXWaFI1pLfi/SC3bXGZw2I2BimW1ao6+OwLKDsWvGEcJwX9TNuyH X-Received: by 10.66.63.98 with SMTP id f2mr54804160pas.123.1464693627093; Tue, 31 May 2016 04:20:27 -0700 (PDT) Received: from localhost ([122.167.19.26]) by smtp.gmail.com with ESMTPSA id 19sm39646560pfi.91.2016.05.31.04.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 04:20:26 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org Subject: [PATCH] cpufreq: Unexport cpufreq_frequency_table_cpuinfo() Date: Tue, 31 May 2016 16:50:23 +0530 Message-Id: <5985d7d6d89f24cce0f028f3475828b3081edfec.1464693600.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org All cpufreq drivers with a freq-table are migrated to use cpufreq_table_validate_and_show() long back and the routine cpufreq_frequency_table_cpuinfo() isn't used outside of cpufreq core now. Unexport it and update Documentation as well. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/core.txt | 4 ++-- Documentation/cpu-freq/cpu-drivers.txt | 2 +- drivers/cpufreq/freq_table.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/cpu-freq/core.txt b/Documentation/cpu-freq/core.txt index ba78e7c2a069..4bc7287806de 100644 --- a/Documentation/cpu-freq/core.txt +++ b/Documentation/cpu-freq/core.txt @@ -96,7 +96,7 @@ new - new frequency For details about OPP, see Documentation/power/opp.txt dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with - cpufreq_frequency_table_cpuinfo which is provided with the list of + cpufreq_table_validate_and_show() which is provided with the list of frequencies that are available for operation. This function provides a ready to use conversion routine to translate the OPP layer's internal information about the available frequencies into a format readily @@ -110,7 +110,7 @@ dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with /* Do things */ r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); if (!r) - cpufreq_frequency_table_cpuinfo(policy, freq_table); + cpufreq_table_validate_and_show(policy, freq_table); /* Do other things */ } diff --git a/Documentation/cpu-freq/cpu-drivers.txt b/Documentation/cpu-freq/cpu-drivers.txt index 14f4e6336d88..decbb8cb5573 100644 --- a/Documentation/cpu-freq/cpu-drivers.txt +++ b/Documentation/cpu-freq/cpu-drivers.txt @@ -231,7 +231,7 @@ if you want to skip one entry in the table, set the frequency to CPUFREQ_ENTRY_INVALID. The entries don't need to be in ascending order. -By calling cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, +By calling cpufreq_table_validate_and_show(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table); the cpuinfo.min_freq and cpuinfo.max_freq values are detected, and policy->min and policy->max are set to the same values. This is diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index a8f1daffc9bc..4e5c5dbfed7a 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c @@ -63,8 +63,6 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, else return 0; } -EXPORT_SYMBOL_GPL(cpufreq_frequency_table_cpuinfo); - int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table)