ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Apr 2016 12:03:29 +0000 (20:03 +0800)
committerWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 12:53:45 +0000 (13:53 +0100)
commit2366c7fdb59812bbd1382afed69e250582c64187
tree4700d4de6ed8dab12ba4e23adaaf88eddca60d29
parentd8fc68a04d2ffa7327a5fd89d4cd9f2fe24659d3
ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

When it's a Xen domain0 booting with ACPI, it will supply a /chosen and
a /hypervisor node in DT. So check if it needs to enable ACPI.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Julien Grall <julien.grall@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/acpi.c