forked from luck/tmp_suning_uos_patched
ACPI: cpufreq: Print _PPC changes via cpufreq debug layer
enabled with CPU_FREQ_DEBUG Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
b0b23e0ade
commit
919158d17b
@ -50,6 +50,10 @@ ACPI_MODULE_NAME("processor_perflib");
|
|||||||
|
|
||||||
static DEFINE_MUTEX(performance_mutex);
|
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:
|
* _PPC support is implemented as a CPUfreq policy notifier:
|
||||||
* This means each time a CPUfreq driver registered also with
|
* 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;
|
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;
|
pr->performance_platform_limit = (int)ppc;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user