[PATCH V3 1/4] x86: acpi: define uncached page flag

From: Jonathan (Zhixiong) Zhang
Date: Thu Jun 11 2015 - 14:27:26 EST


From: "Jonathan (Zhixiong) Zhang" <zjzhang@xxxxxxxxxxxxxx>

This definition is used in APEI code when needing to map pages as
uncached.

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

diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h
index 3a45668f6dc3..6afb27682b00 100644
--- a/arch/x86/include/asm/acpi.h
+++ b/arch/x86/include/asm/acpi.h
@@ -138,6 +138,10 @@ static inline void disable_acpi(void) { }

#endif /* !CONFIG_ACPI */

+#ifdef CONFIG_ACPI_APEI
+#define ARCH_APEI_PAGE_KERNEL_UC (PAGE_KERNEL_NOCACHE)
+#endif /*CONFIG_ACPI_APEI */
+
#define ARCH_HAS_POWER_INIT 1

#ifdef CONFIG_ACPI_NUMA
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/