[<prev] [next>] [day] [month] [year] [list]
Message-ID: <007934281451e843a0428dc1e674f9dae149b75b.camel@linux.ibm.com>
Date: Mon, 23 Sep 2019 17:48:24 -0300
From: Leonardo Bras <leonardo@...ux.ibm.com>
To: John Hubbard <jhubbard@...dia.com>, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
Arnd Bergmann <arnd@...db.de>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>,
Christophe Leroy <christophe.leroy@....fr>,
Andrew Morton <akpm@...ux-foundation.org>,
Dan Williams <dan.j.williams@...el.com>,
Nicholas Piggin <npiggin@...il.com>,
Mahesh Salgaonkar <mahesh@...ux.vnet.ibm.com>,
Thomas Gleixner <tglx@...utronix.de>,
Richard Fontana <rfontana@...hat.com>,
Ganesh Goudar <ganeshgr@...ux.ibm.com>,
Allison Randal <allison@...utok.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mike Rapoport <rppt@...ux.ibm.com>,
YueHaibing <yuehaibing@...wei.com>,
Ira Weiny <ira.weiny@...el.com>,
Jason Gunthorpe <jgg@...pe.ca>,
Keith Busch <keith.busch@...el.com>,
Linux-MM <linux-mm@...ck.org>
Subject: Re: [PATCH v2 02/11] asm-generic/pgtable: Adds dummy functions to
monitor lockless pgtable walks
Thanks for the feedback,
On Mon, 2019-09-23 at 13:39 -0700, John Hubbard wrote:
> Please remember to include linux-mm if there is a v2.
Sure, I will include on v3.
> Nit: seems like it would be nicer to just put it all in one place, and use
> positive logic, and also I think people normally don't compress the empty
> functions quite that much. So like this:
I did this by following the default on the rest of this file.
As you can see, all other features use the standard of
#ifndef SOMETHING
dummy/generic functions
#endif
Declaring the functions become responsibility of the arch.
> #ifdef __HAVE_ARCH_LOCKLESS_PGTBL_WALK_COUNTER
> void start_lockless_pgtbl_walk(struct mm_struct *mm);
> void end_lockless_pgtbl_walk(struct mm_struct *mm);
> int running_lockless_pgtbl_walk(struct mm_struct *mm);
>
> #else
> static inline void start_lockless_pgtbl_walk(struct mm_struct *mm)
> {
> }
> static inline void end_lockless_pgtbl_walk(struct mm_struct *mm)
> {
> }
> static inline int running_lockless_pgtbl_walk(struct mm_struct *mm)
> {
> return 0;
> }
> #endif
>
> thanks,
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists