Skip to content

Commit 64a172d

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fix from Catalin Marinas: "Fix kernel panic on ACPI-based systems where CPU capacity description is not currently handled" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: skip register_cpufreq_notifier on ACPI-based systems
2 parents ef1dce9 + 606f422 commit 64a172d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/arm64/kernel/topology.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* for more details.
1212
*/
1313

14+
#include <linux/acpi.h>
1415
#include <linux/cpu.h>
1516
#include <linux/cpumask.h>
1617
#include <linux/init.h>
@@ -209,7 +210,12 @@ static struct notifier_block init_cpu_capacity_notifier = {
209210

210211
static int __init register_cpufreq_notifier(void)
211212
{
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)
213219
return -EINVAL;
214220

215221
if (!alloc_cpumask_var(&cpus_to_visit, GFP_KERNEL)) {

0 commit comments

Comments
 (0)