|
24 | 24 |
|
25 | 25 | #define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"
|
26 | 26 |
|
27 |
| -static DEFINE_MUTEX(performance_mutex); |
28 |
| - |
29 | 27 | /*
|
30 | 28 | * _PPC support is implemented as a CPUfreq policy notifier:
|
31 | 29 | * This means each time a CPUfreq driver registered also with
|
@@ -209,6 +207,10 @@ void acpi_processor_ppc_exit(struct cpufreq_policy *policy)
|
209 | 207 | }
|
210 | 208 | }
|
211 | 209 |
|
| 210 | +#ifdef CONFIG_X86 |
| 211 | + |
| 212 | +static DEFINE_MUTEX(performance_mutex); |
| 213 | + |
212 | 214 | static int acpi_processor_get_performance_control(struct acpi_processor *pr)
|
213 | 215 | {
|
214 | 216 | int result = 0;
|
@@ -267,7 +269,6 @@ static int acpi_processor_get_performance_control(struct acpi_processor *pr)
|
267 | 269 | return result;
|
268 | 270 | }
|
269 | 271 |
|
270 |
| -#ifdef CONFIG_X86 |
271 | 272 | /*
|
272 | 273 | * Some AMDs have 50MHz frequency multiples, but only provide 100MHz rounding
|
273 | 274 | * in their ACPI data. Calculate the real values and fix up the _PSS data.
|
@@ -298,9 +299,6 @@ static void amd_fixup_frequency(struct acpi_processor_px *px, int i)
|
298 | 299 | px->core_frequency = (100 * (fid + 8)) >> did;
|
299 | 300 | }
|
300 | 301 | }
|
301 |
| -#else |
302 |
| -static void amd_fixup_frequency(struct acpi_processor_px *px, int i) {}; |
303 |
| -#endif |
304 | 302 |
|
305 | 303 | static int acpi_processor_get_performance_states(struct acpi_processor *pr)
|
306 | 304 | {
|
@@ -440,13 +438,11 @@ int acpi_processor_get_performance_info(struct acpi_processor *pr)
|
440 | 438 | * the BIOS is older than the CPU and does not know its frequencies
|
441 | 439 | */
|
442 | 440 | update_bios:
|
443 |
| -#ifdef CONFIG_X86 |
444 | 441 | if (acpi_has_method(pr->handle, "_PPC")) {
|
445 | 442 | if(boot_cpu_has(X86_FEATURE_EST))
|
446 | 443 | pr_warn(FW_BUG "BIOS needs update for CPU "
|
447 | 444 | "frequency support\n");
|
448 | 445 | }
|
449 |
| -#endif |
450 | 446 | return result;
|
451 | 447 | }
|
452 | 448 | EXPORT_SYMBOL_GPL(acpi_processor_get_performance_info);
|
@@ -788,3 +784,4 @@ void acpi_processor_unregister_performance(unsigned int cpu)
|
788 | 784 | mutex_unlock(&performance_mutex);
|
789 | 785 | }
|
790 | 786 | EXPORT_SYMBOL(acpi_processor_unregister_performance);
|
| 787 | +#endif |
0 commit comments