linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi-cpufreq: Add a miss ifdef CONFIG_X86_ACPI_CPUFREQ_CPB
@ 2015-07-10  5:50 Pan Xinhui
  2015-07-10 20:44 ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Pan Xinhui @ 2015-07-10  5:50 UTC (permalink / raw)
  To: linux-kernel, linux-pm
  Cc: rjw@rjwysocki.net, Viresh Kumar, yanmin_zhang@linux.intel.com,
	mnipxh@163.com


If CONFIG_X86_ACPI_CPUFREQ_CPB has not been defined, the placeholder for
cpb is not needed. Add ifdef around it.

Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com>
---
 drivers/cpufreq/acpi-cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index e7fcaa6..314a19e 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -884,7 +884,9 @@ static int acpi_cpufreq_resume(struct cpufreq_policy *policy)
 static struct freq_attr *acpi_cpufreq_attr[] = {
 	&cpufreq_freq_attr_scaling_available_freqs,
 	&freqdomain_cpus,
+#ifdef CONFIG_X86_ACPI_CPUFREQ_CPB
 	NULL,	/* this is a placeholder for cpb, do not remove */
+#endif
 	NULL,
 };
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-20 21:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-10  5:50 [PATCH] acpi-cpufreq: Add a miss ifdef CONFIG_X86_ACPI_CPUFREQ_CPB Pan Xinhui
2015-07-10 20:44 ` Rafael J. Wysocki
2015-07-13  6:33   ` Pan Xinhui
2015-07-13 23:26     ` Rafael J. Wysocki
2015-07-14  2:09       ` Pan Xinhui
2015-07-14  2:52         ` Pan Xinhui
2015-07-18  0:34           ` Rafael J. Wysocki
2015-07-20  5:14             ` Pan Xinhui
2015-07-20 21:47               ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).