Commit 32dbc81b authored by Andy Grover's avatar Andy Grover

ACPI: Enable compilation w/o cpufreq

parent f3812c2a
...@@ -1040,6 +1040,7 @@ acpi_processor_apply_limit ( ...@@ -1040,6 +1040,7 @@ acpi_processor_apply_limit (
if (!pr->flags.limit) if (!pr->flags.limit)
return_VALUE(-ENODEV); return_VALUE(-ENODEV);
#ifdef CONFIG_CPU_FREQ
if (pr->flags.performance) { if (pr->flags.performance) {
px = pr->performance_platform_limit; px = pr->performance_platform_limit;
if (pr->limit.user.px > px) if (pr->limit.user.px > px)
...@@ -1058,6 +1059,7 @@ acpi_processor_apply_limit ( ...@@ -1058,6 +1059,7 @@ acpi_processor_apply_limit (
} else if (pr->performance_platform_limit) { } else if (pr->performance_platform_limit) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Platform limit event detected. Consider using ACPI P-States CPUfreq driver\n")); ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Platform limit event detected. Consider using ACPI P-States CPUfreq driver\n"));
} }
#endif
if (pr->flags.throttling) { if (pr->flags.throttling) {
if (pr->limit.user.tx > tx) if (pr->limit.user.tx > tx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment