microblaze: add a dummy pgprot_noncached

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 2:00 pm

Gitweb:     http://git.kernel.org/linus/0c60155e14eb00fa13836a710a2d2efb63d8861c
Commit:     0c60155e14eb00fa13836a710a2d2efb63d8861c
Parent:     6b4374261a067e2e1b78602eb5e631a4e027dacf
Author:     Arnd Bergmann <arnd@arndb.de>
AuthorDate: Fri May 1 21:44:51 2009 +0000
Committer:  Michal Simek <monstr@monstr.eu>
CommitDate: Thu May 21 15:56:06 2009 +0200

    microblaze: add a dummy pgprot_noncached
    
    Some device drivers call this, so add a macro
    that pretends to do this. Since there is no
    MMU support, it won't actually result in an
    uncached mapping, though.
    
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/include/asm/pgtable.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h
index 4df31e4..254fd4b 100644
--- a/arch/microblaze/include/asm/pgtable.h
+++ b/arch/microblaze/include/asm/pgtable.h
@@ -27,6 +27,8 @@
 #define PAGE_READONLY		__pgprot(0) /* these mean nothing to non MMU */
 #define PAGE_KERNEL		__pgprot(0) /* these mean nothing to non MMU */
 
+#define pgprot_noncached(x)	(x)
+
 #define __swp_type(x)		(0)
 #define __swp_offset(x)		(0)
 #define __swp_entry(typ, off)	((swp_entry_t) { ((typ) | ((off) << 7)) })
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
microblaze: add a dummy pgprot_noncached, Linux Kernel Mailing ..., (Fri Jun 12, 2:00 pm)