[PATCHv2 08/12] arm64: psci: remove ACPI coupling

Catalin Marinas catalin.marinas at arm.com
Mon May 18 10:38:13 PDT 2015

On Mon, May 18, 2015 at 11:38:19AM +0100, Mark Rutland wrote:
> The 32-bit ARM port doesn't have ACPI headers, and conditionally
> including them is going to look horrendous. In preparation for sharing
> the PSCI invocation code with 32-bit, move the acpi_psci_* function
> declarations and definitions such that the PSCI client code need not
> include ACPI headers.
> While it would seem like we could simply hide the ACPI includes in
> psci.h, the ACPI headers have hilarious circular dependencies which make
> this infeasible without reorganising most of ACPICA. So rather than
> doing that, move the acpi_psci_* prototypes into psci.h.
> The psci_acpi_init function is made dependent on CONFIG_ACPI (with a
> stub implementation in asm/psci.h) such that it need not be built for
> 32-bit ARM or kernels without ACPI support. The currently missing __init
> annotations are added to the prototypes in the header.
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Reviewed-by: Ashwin Chaugule <ashwin.chaugule at linaro.org>
> Cc: Al Stone <al.stone at linaro.org>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Hanjun Guo <hanjun.guo at linaro.org>
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
> Cc: Will Deacon <will.deacon at arm.com>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>

More information about the linux-arm-kernel mailing list