Skip to content

Commit

Permalink
asm-generic: add dummy pgprot_noncached()
Browse files Browse the repository at this point in the history
Most architectures now provide a pgprot_noncached(), the
remaining ones can simply use an dummy default implementation,
except for cris and xtensa, which should override the
default appropriately.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Magnus Damm <magnus.damm@gmail.com>
  • Loading branch information
Paul Mundt authored and Arnd Bergmann committed Jun 23, 2009
1 parent 32a9ff9 commit 0634a63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-generic/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres
#define move_pte(pte, prot, old_addr, new_addr) (pte)
#endif

#ifndef pgprot_noncached
#define pgprot_noncached(prot) (prot)
#endif

#ifndef pgprot_writecombine
#define pgprot_writecombine pgprot_noncached
#endif
Expand Down

0 comments on commit 0634a63

Please sign in to comment.