Skip to content

Commit 32dbc81

Browse files
author
Andy Grover
committed
ACPI: Enable compilation w/o cpufreq
1 parent f3812c2 commit 32dbc81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/acpi/processor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ acpi_processor_apply_limit (
10401040
if (!pr->flags.limit)
10411041
return_VALUE(-ENODEV);
10421042

1043+
#ifdef CONFIG_CPU_FREQ
10431044
if (pr->flags.performance) {
10441045
px = pr->performance_platform_limit;
10451046
if (pr->limit.user.px > px)
@@ -1058,6 +1059,7 @@ acpi_processor_apply_limit (
10581059
} else if (pr->performance_platform_limit) {
10591060
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Platform limit event detected. Consider using ACPI P-States CPUfreq driver\n"));
10601061
}
1062+
#endif
10611063

10621064
if (pr->flags.throttling) {
10631065
if (pr->limit.user.tx > tx)

0 commit comments

Comments
 (0)