From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx203.postini.com [74.125.245.203]) by kanga.kvack.org (Postfix) with SMTP id 967D96B0080 for ; Thu, 25 Oct 2012 09:09:15 -0400 (EDT) Message-Id: <20121025124833.083293843@chello.nl> Date: Thu, 25 Oct 2012 14:16:25 +0200 From: Peter Zijlstra Subject: [PATCH 08/31] sched, numa, mm, MIPS/thp: Add pmd_pgprot() implementation References: <20121025121617.617683848@chello.nl> Content-Disposition: inline; filename=0008-sched-numa-mm-MIPS-thp-Add-pmd_pgprot-implementation.patch Sender: owner-linux-mm@kvack.org List-ID: To: Rik van Riel , Andrea Arcangeli , Mel Gorman , Johannes Weiner , Thomas Gleixner , Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ralf Baechle , Martin Schwidefsky , Heiko Carstens , Peter Zijlstra , Ingo Molnar From: Ralf Baechle 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 --- arch/mips/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) Index: tip/arch/mips/include/asm/pgtable.h =================================================================== --- tip.orig/arch/mips/include/asm/pgtable.h +++ tip/arch/mips/include/asm/pgtable.h @@ -89,6 +89,8 @@ static inline int is_zero_pfn(unsigned l 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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org