diff options
| -rw-r--r-- | arch/arm64/kernel/topology.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 23e9e13bd2aa..655e65f38f31 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | * for more details. | 11 | * for more details. |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #include <linux/acpi.h> | ||
| 14 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
| 15 | #include <linux/cpumask.h> | 16 | #include <linux/cpumask.h> |
| 16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| @@ -209,7 +210,12 @@ static struct notifier_block init_cpu_capacity_notifier = { | |||
| 209 | 210 | ||
| 210 | static int __init register_cpufreq_notifier(void) | 211 | static int __init register_cpufreq_notifier(void) |
| 211 | { | 212 | { |
| 212 | if (cap_parsing_failed) | 213 | /* |
| 214 | * on ACPI-based systems we need to use the default cpu capacity | ||
| 215 | * until we have the necessary code to parse the cpu capacity, so | ||
| 216 | * skip registering cpufreq notifier. | ||
| 217 | */ | ||
| 218 | if (!acpi_disabled || cap_parsing_failed) | ||
| 213 | return -EINVAL; | 219 | return -EINVAL; |
| 214 | 220 | ||
| 215 | if (!alloc_cpumask_var(&cpus_to_visit, GFP_KERNEL)) { | 221 | if (!alloc_cpumask_var(&cpus_to_visit, GFP_KERNEL)) { |
