]> err.no Git - linux-2.6/commitdiff
ACPI: cpufreq: Print _PPC changes via cpufreq debug layer
authorThomas Renninger <trenn@suse.de>
Wed, 31 Oct 2007 14:41:42 +0000 (15:41 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 19:47:40 +0000 (14:47 -0500)
enabled with CPU_FREQ_DEBUG

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_perflib.c

index f32010bee4d5650a6896624bab290a4d560e916c..b477a4be8a698fde564465278cf7c09321f9b00b 100644 (file)
@@ -50,6 +50,10 @@ ACPI_MODULE_NAME("processor_perflib");
 
 static DEFINE_MUTEX(performance_mutex);
 
+/* Use cpufreq debug layer for _PPC changes. */
+#define cpufreq_printk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_CORE, \
+                                               "cpufreq-core", msg)
+
 /*
  * _PPC support is implemented as a CPUfreq policy notifier:
  * This means each time a CPUfreq driver registered also with
@@ -131,6 +135,9 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
                return -ENODEV;
        }
 
+       cpufreq_printk("CPU %d: _PPC is %d - frequency %s limited\n", pr->id,
+                      (int)ppc, ppc ? "" : "not");
+
        pr->performance_platform_limit = (int)ppc;
 
        return 0;