]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sched, numa, mm, MIPS/thp: Add pmd_pgprot() implementation
authorRalf Baechle <ralf@linux-mips.org>
Thu, 18 Oct 2012 14:51:01 +0000 (16:51 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 28 Oct 2012 16:30:57 +0000 (17:30 +0100)
Add the pmd_pgprot() method that will be needed
by the new NUMA code.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/mips/include/asm/pgtable.h

index c02158be836cc6793393eb4f3f3c094b3df1043f..bbe4cda10cd060cb81f0a7c1d3d8db4fe87d25bd 100644 (file)
@@ -89,6 +89,8 @@ static inline int is_zero_pfn(unsigned long pfn)
 
 extern void paging_init(void);
 
+#define pmd_pgprot(x)          __pgprot(pmd_val(x) & ~_PAGE_CHG_MASK)
+
 /*
  * Conversion functions: convert a page and protection to a page entry,
  * and a page entry and page directory to the page they refer to.