[PATCH V3 2/4] arm64: acpi: define uncached page flag

Jonathan (Zhixiong) Zhang
2015-06-11T18:26:34Z

From: "Jonathan (Zhixiong) Zhang" <zjzhang@codeaurora.org>

This defintion is used in ACPI code when needing to map page
as uncached.

Signed-off-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
---
arch/arm64/include/asm/acpi.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h
index 59c05d8ea4a0..518b91dc5acd 100644
--- a/arch/arm64/include/asm/acpi.h
+++ b/arch/arm64/include/asm/acpi.h
@@ -93,4 +93,8 @@ static inline bool acpi_psci_use_hvc(void) { return false; }
static inline void acpi_init_cpus(void) { }
#endif /* CONFIG_ACPI */

+#ifdef CONFIG_ACPI_APEI
+#define ARCH_APEI_PAGE_KERNEL_UC (PROT_DEVICE_nGnRE)
+#endif /*CONFIG_ACPI_APEI */
+
#endif /*_ASM_ACPI_H*/