提交 015f6d7e 编写于 作者: X Xiongfeng Wang 提交者: Xie XiuQi

arm64: set all the CPU as present for dtb booting with 'CONFIG_ACPI' enabled

hulk inclusion
category: bugfix
bugzilla: 20799
CVE: NA
---------------------------

The following patch didn't consider the situation when we boot the
system using device tree but 'CONFIG_ACPI' is enabled. In this
situation, we also need to set all the CPU as present CPU.

Fixes: 280637f70ab5 ("arm64: mark all the GICC nodes in MADT as possible cpu")
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6eefee3a
......@@ -762,8 +762,12 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
if (err)
continue;
#ifdef CONFIG_ACPI
if (!acpi_disabled) {
if ((cpu_madt_gicc[cpu].flags & ACPI_MADT_ENABLED))
set_cpu_present(cpu, true);
} else {
set_cpu_present(cpu, true);
}
#else
set_cpu_present(cpu, true);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册