]> xenbits.xensource.com Git - xen.git/commit
arm/acpi: Add acpi parameter to enable/disable acpi
authorShannon Zhao <zhaoshenglong@huawei.com>
Wed, 2 Mar 2016 07:38:00 +0000 (08:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Mar 2016 08:10:28 +0000 (09:10 +0100)
commit71a3ebdd680b6e382caa40cb8d45846e331b90d0
tree4f815f2ae042f8f8bf0ad8c5a6d6ddf3d3a4af8c
parent6bb1a2fc54027041843ec9bc04881d1396cc7522
arm/acpi: Add acpi parameter to enable/disable acpi

Define new command line parameter "acpi" to enable/disable acpi.
This implements the following policy to decide whether ACPI should be
used to boot the system:
- acpi=off: ACPI will not be used to boot the system, even if there is
  no alternative available (e.g., device tree is empty)
- acpi=force: only ACPI will be used to boot the system; if that fails,
  there will be no fallback to alternative methods (such as device tree)
- otherwise, ACPI will be used as a fallback if the device tree turns
  out to lack a platform description; the heuristic to decide this is
  whether /chosen is the only node present at depth 1

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/acpi/boot.c