summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/setup.c
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2015-03-24 15:02:56 +0100
committerWill Deacon <will.deacon@arm.com>2015-03-26 16:13:09 +0100
commit33757ded074918eb49243968a82e7c9ec2d71720 (patch)
tree112668694f569b3123ea069877883bd89aec2398 /arch/arm64/kernel/setup.c
parentARM64 / ACPI: additions of ACPI documentation for arm64 (diff)
downloadlinux-33757ded074918eb49243968a82e7c9ec2d71720.tar.xz
linux-33757ded074918eb49243968a82e7c9ec2d71720.zip
ARM64 / ACPI: Don't unflatten device tree if acpi=force is passed
Since the policy is that once we pass acpi=force in the early param, we will not unflatten device tree even if ACPI is disabled in ACPI table init fails, so fix the code by comparinging both acpi_disabled and param_acpi_force before the device tree is unflattened. CC: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r--arch/arm64/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index b2783111fd52..d60b1adc7500 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -390,7 +390,7 @@ void __init setup_arch(char **cmdline_p)
early_ioremap_reset();
- if (acpi_disabled) {
+ if (acpi_disabled && !param_acpi_force) {
unflatten_device_tree();
psci_dt_init();
cpu_read_bootcpu_ops();