From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx196.postini.com [74.125.245.196]) by kanga.kvack.org (Postfix) with SMTP id 2E15F6B0081 for ; Thu, 28 Jun 2012 08:57:02 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 07/40] autonuma: generic pte_numa() and pmd_numa() Date: Thu, 28 Jun 2012 14:55:47 +0200 Message-Id: <1340888180-15355-8-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-1-git-send-email-aarcange@redhat.com> References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Hillf Danton , Dan Smith , Peter Zijlstra , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Implement generic version of the methods. They're used when CONFIG_AUTONUMA=n, and they're a noop. Signed-off-by: Andrea Arcangeli --- include/asm-generic/pgtable.h | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index ff4947b..0ff87ec 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h @@ -530,6 +530,18 @@ static inline int pmd_trans_unstable(pmd_t *pmd) #endif } +#ifndef CONFIG_AUTONUMA +static inline int pte_numa(pte_t pte) +{ + return 0; +} + +static inline int pmd_numa(pmd_t pmd) +{ + return 0; +} +#endif /* CONFIG_AUTONUMA */ + #endif /* CONFIG_MMU */ #endif /* !__ASSEMBLY__ */ -- 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