[Letux-kernel] [small team RFC v3 01/10] ARM: introduce pgprot_device()
H. Nikolaus Schaller
hns at goldelico.com
Mon Feb 5 17:20:56 CET 2018
From: Matthijs van Duin <matthijsvanduin at gmail.com>
strongly-ordered memory is usually expensive overkill.
Signed-off-by: Matthijs van Duin <matthijsvanduin at gmail.com>
---
arch/arm/include/asm/pgtable.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index 150ece66ddf3..25be1269a15a 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -122,6 +122,9 @@ extern pgprot_t pgprot_s2_device;
#define pgprot_writecombine(prot) \
__pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE)
+#define pgprot_device(prot) \
+ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_SHARED)
+
#define pgprot_stronglyordered(prot) \
__pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED)
--
2.12.2
More information about the Letux-kernel
mailing list