diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2015-03-24 15:02:56 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-26 16:13:09 +0100 |
commit | 33757ded074918eb49243968a82e7c9ec2d71720 (patch) | |
tree | 112668694f569b3123ea069877883bd89aec2398 /arch/arm64/kernel/setup.c | |
parent | ARM64 / ACPI: additions of ACPI documentation for arm64 (diff) | |
download | linux-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.c | 2 |
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(); |