diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2015-03-24 10:02:56 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-26 11:13:09 -0400 |
commit | 33757ded074918eb49243968a82e7c9ec2d71720 (patch) | |
tree | 112668694f569b3123ea069877883bd89aec2398 /arch/arm64/kernel/setup.c | |
parent | 735f00bdf23c427af0f54a9e672a93b5d3723f60 (diff) |
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) | |||
390 | 390 | ||
391 | early_ioremap_reset(); | 391 | early_ioremap_reset(); |
392 | 392 | ||
393 | if (acpi_disabled) { | 393 | if (acpi_disabled && !param_acpi_force) { |
394 | unflatten_device_tree(); | 394 | unflatten_device_tree(); |
395 | psci_dt_init(); | 395 | psci_dt_init(); |
396 | cpu_read_bootcpu_ops(); | 396 | cpu_read_bootcpu_ops(); |