diff mbox

[v2] acpi: Fix regression where _PPC is not read at boot even when ignore_ppc=0

Message ID 20100218182820.GQ29569@tux1.beaverton.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Darrick J. Wong Feb. 18, 2010, 6:28 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index 2cabadc..a959f6a 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -413,7 +413,11 @@  static int acpi_processor_get_performance_info(struct acpi_processor *pr)
 	if (result)
 		goto update_bios;
 
-	return 0;
+	/* We need to call _PPC once when cpufreq starts */
+	if (ignore_ppc != 1)
+		result = acpi_processor_get_platform_limit(pr);
+
+	return result;
 
 	/*
 	 * Having _PPC but missing frequencies (_PSS, _PCT) is a very good hint that