From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: pgtable: add pgprot_writethrough() macro
Date: Tue, 22 May 2012 19:54:03 +0000 [thread overview]
Message-ID: <1337716444-30139-2-git-send-email-siarhei.siamashka@gmail.com> (raw)
In-Reply-To: <1337716444-30139-1-git-send-email-siarhei.siamashka@gmail.com>
Needed for remapping pages with write-through cacheable
attribute. May be useful for framebuffers.
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
---
arch/arm/include/asm/pgtable.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index f66626d..04297fa 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -103,6 +103,9 @@ extern pgprot_t pgprot_kernel;
#define pgprot_stronglyordered(prot) \
__pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_UNCACHED)
+#define pgprot_writethrough(prot) \
+ __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_WRITETHROUGH)
+
#ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
#define pgprot_dmacoherent(prot) \
__pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE | L_PTE_XN)
--
1.7.3.4
next prev parent reply other threads:[~2012-05-22 19:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 19:54 [PATCH 0/2] OMAPDSS: write-through caching support for omapfb Siarhei Siamashka
2012-05-22 19:54 ` Siarhei Siamashka [this message]
2012-08-08 11:07 ` [PATCH 1/2] ARM: pgtable: add pgprot_writethrough() macro Grazvydas Ignotas
2012-05-22 19:54 ` [PATCH 2/2] OMAPDSS: Optionally enable write-through cache for the framebuffer Siarhei Siamashka
2012-05-22 20:25 ` [PATCH 0/2] OMAPDSS: write-through caching support for omapfb Siarhei Siamashka
2012-05-24 7:43 ` Tomi Valkeinen
2012-05-25 9:00 ` Siarhei Siamashka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1337716444-30139-2-git-send-email-siarhei.siamashka@gmail.com \
--to=siarhei.siamashka@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).