Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754388Ab2E3UXZ (ORCPT ); Wed, 30 May 2012 16:23:25 -0400 Received: from mail-qa0-f49.google.com ([209.85.216.49]:41473 "EHLO mail-qa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903Ab2E3UXY (ORCPT ); Wed, 30 May 2012 16:23:24 -0400 Date: Wed, 30 May 2012 16:23:19 -0400 From: Konrad Rzeszutek Wilk To: Andrea Arcangeli Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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 Subject: Re: [PATCH 06/35] autonuma: generic pte_numa() and pmd_numa() Message-ID: <20120530202318.GB30148@localhost.localdomain> References: <1337965359-29725-1-git-send-email-aarcange@redhat.com> <1337965359-29725-7-git-send-email-aarcange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1337965359-29725-7-git-send-email-aarcange@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 47 On Fri, May 25, 2012 at 07:02:10PM +0200, Andrea Arcangeli wrote: > Implement generic version of the methods. They're used when > CONFIG_AUTONUMA=n, and they're a noop. I think you can roll that in the previous patch. > > 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 fa596d9..780f707 100644 > --- a/include/asm-generic/pgtable.h > +++ b/include/asm-generic/pgtable.h > @@ -521,6 +521,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/ . > Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ > Don't email: email@kvack.org > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/