apei, hest: Wrap all MCE code inside #ifdef CONFIG_X86_MCE to enable platform other than x86.

Fix compilation error:
drivers/acpi/apei/hest.c: In function ‘acpi_hest_init’:
drivers/acpi/apei/hest.c:268:7: error: ‘acpi_disable_cmcff’ undeclared (first use in this function)
drivers/acpi/apei/hest.c:268:7: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [drivers/acpi/apei/hest.o] Error 1

MCE is X86 platform specific and should be consider only if MCE is configured.
ACPI: ARM: remove sleep.c

sleep.c is not needed by the arm port as it will most likely be covered
by some other power management framework like PSCI in the future so remove
it.

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
ARM: ACPI: simplify directory structure

I don't think there is any need for such a deep directory structure and
the filename boot.c was not very descriptive of what the file does.

Make directory structure less deep and remane to arm-core.c

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
ARM: ACPI: remove irq type switching from core

ARM/ARM64 only support GIC type under ACPI so remove the various x86 style
IRQ type switching and the EISA support.

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
ARM / ACPI: Remove acpi_lapic and acpi_ioapic related code

Variable acpi_lapic and acpi_ioapic are used for x86 MPS
(Multi-processor Spec) stuff, it is not needed for ARM, remove them.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Graeme Gregory <graeme.gregory@linaro.org>
ARM / ACPI: Remove the global lock definition in header file

ARM/ARM64 is linked to reduced hardware now, global lock is not needed
anymore.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Graeme Gregory <graeme.gregory@linaro.org>
ARM / ACPI: Remove unused variables

These variables are for x86 only, remove them.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Graeme Gregory <graeme.gregory@linaro.org>
ARM: ACPI: removce #if around acpi.h

Internally include file is already protected in the case of #ifndef
CONFIG_ACPI so we don't need these checks.

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
ARM64: ACPI: removce #if around acpi.h

Internally include file is already protected in the case of #ifndef
CONFIG_ACPI so we don't need these checks.

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
ACPI: ARM: make use of an ACPI blob address in FDT /chosen configurable.

Since this is really only a option to be used during kernel development,
add the kernel config item ACPI_USE_CHOSEN_NODE to allow a developer
access to this when working on a non-UEFI system or if needed to experiment
with ACPI table content during driver development.

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: Clean up a leftover comment that is no longer pertinent.

The comment questioned whether the header file had a typo when it
in fact does not.

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: remove x86 acpi_wakeup_address usage when running on ARM

This code will be handled in a different manner (either PSCI or other
kernel code) so is not needed (and indeed is not used) for ARMv7/v8
systems.

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: remove unnecessary comments

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: clean up comments and disable PAD code for ARM

Remove a bunch of comments left over from some initial prototyping work.

PAD (Processor Aggregator Device) is intended for use on x86 systems for
now.  Remove it from the ACPI configuration options for ARM.

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: stub out PCI configuration call for non-PCI systems

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: ARM: disable x86-specific processor idle code

Most of drivers/acpi/processor_idle.c is x86-centric.  So, modify the
kernel config so it is not included unless working on an x86 platform.

Signed-off-by: Al Stone <al.stone@linaro.org>
ACPI: process_idle repair hardware reduced compile issue

It is not valid to use the acpica macros to try and remove functions
they only work on prototypes. Instead just increase the scope of the

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
ARM: ACPI: define acpi_suspend_lowlevel as NULL for arm

We had a missing symbol so define this as NULL for arm as it is currenly
unused on arm platform

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Acked-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
ACPI / platform: Use official HID as LNRO

Use the official HID as LNRO from temporary LINA.

Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
Acked-by: Graeme Gregory <graeme.gregory@linaro.org>
ARM64: ACPI: fix the definition of acpi_suspend_lowlevel

Define it correctly as a function pointer in same way as armv7

Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>