From: Ralf Baechle Date: Thu, 18 Oct 2012 14:51:01 +0000 (+0200) Subject: sched, numa, mm, MIPS/thp: Add pmd_pgprot() implementation X-Git-Tag: next-20121029~34^2^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=536165ead34b12ec342fa532532a1bc5857b3aee;p=karo-tx-linux.git sched, numa, mm, MIPS/thp: Add pmd_pgprot() implementation Add the pmd_pgprot() method that will be needed by the new NUMA code. Reported-by: Stephen Rothwell Signed-off-by: Ralf Baechle Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index c02158be836c..bbe4cda10cd0 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h @@ -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.