From: Ingo Molnar <mingo@elte.hu>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
haveblue@us.ibm.com, linux-kernel@vger.kernel.org,
linux-s390@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
Tony Luck <tony.luck@intel.com>,
Paul Mackerras <paulus@samba.org>,
Thomas Gleixner <tglx@linutronix.de>,
Paul Mundt <lethal@linux-sh.org>
Subject: Re: [patch 09/10] Hugetlb common code update for System z.
Date: Fri, 28 Mar 2008 17:03:38 +0100 [thread overview]
Message-ID: <20080328160338.GA5687@elte.hu> (raw)
In-Reply-To: <1206719599.6592.10.camel@localhost>
* Martin Schwidefsky <schwidefsky@de.ibm.com> wrote:
> > > include/asm-sh/hugetlb.h | 28 +++++++++++++++++++++++++
> > > include/asm-sparc64/hugetlb.h | 30 +++++++++++++++++++++++++++
> > > include/asm-x86/hugetlb.h | 28 +++++++++++++++++++++++++
> >
> > these seem largely duplicated - shouldnt there be an
> > asm-generic/hugetlb.h instead, which asm/hugetlb.h could include to
> > get default behavior? It would probably reduce the linecount of your
> > patch as well.
>
> Well the hugetlbfs primitives are architecture specific, aren't they?
> Just like the other page table manipulation functions. I find the
> usual method to use asm-generic/<xxx> and a lot of defines and #ifdefs
> to pick up the correct definition from a generic header file rather
> hard to read. In the end each arch that wants to use hugetlbfs has to
> define each of the hugetlb primitives. Most of them are rather simple,
> e.g. the x86 set_huge_pte_at is just a set_pte_at. One line to define
> the primitive. Now we could have an #ifdef block around the default
> definition that maps set_huge_pte_at to set_pte_at in asm-generic and
> an ARCH_HAS_xx override for architecture that need to do something
> more complicated. Somehow that was where we started .. I think the
> best way to get rid of the ARCH_HAS_xxx fugliness is to let each
> architecture define their primitives, even if it looks like code
> duplication.
sorry, i misread your patch - it indeed looks cleaner with your patch
applied.
Ingo
next prev parent reply other threads:[~2008-03-28 16:04 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 17:31 [patch 00/10] System z10 patches Martin Schwidefsky
2008-03-12 17:31 ` [patch 01/10] Add new fields for System z10 to /proc/sysinfo Martin Schwidefsky
2008-03-12 17:57 ` Josef 'Jeff' Sipek
2008-03-13 10:02 ` Martin Schwidefsky
2008-03-12 17:31 ` [patch 02/10] Export stfle Martin Schwidefsky
2008-03-12 17:31 ` [patch 03/10] sched: add exported arch_reinit_sched_domains() to header file Martin Schwidefsky
2008-03-12 23:03 ` Andrew Morton
2008-03-13 9:48 ` Martin Schwidefsky
2008-03-21 12:29 ` Ingo Molnar
2008-03-12 17:31 ` [patch 04/10] sched: Add arch_update_cpu_topology hook Martin Schwidefsky
2008-03-21 12:30 ` Ingo Molnar
2008-03-12 17:32 ` [patch 05/10] cpu topology: convert siblings_show macro to accept non-lvalues Martin Schwidefsky
2008-03-12 17:32 ` [patch 06/10] cpu topology support for s390 Martin Schwidefsky
2008-03-12 23:11 ` Andrew Morton
2008-03-13 12:28 ` Martin Schwidefsky
2008-03-13 22:40 ` Heiko Carstens
2008-03-12 17:32 ` [patch 07/10] Vertical cpu management Martin Schwidefsky
2008-03-12 17:32 ` [patch 08/10] Add missing TLB flush to hugetlb_cow() Martin Schwidefsky
2008-03-12 17:32 ` [patch 09/10] Hugetlb common code update for System z Martin Schwidefsky
2008-03-12 17:51 ` Dave Hansen
2008-03-12 23:18 ` Gerald Schaefer
2008-03-12 23:43 ` Andrew Morton
2008-03-13 17:49 ` Gerald Schaefer
2008-03-28 14:05 ` Gerald Schaefer
2008-03-28 14:06 ` Ingo Molnar
2008-03-28 14:33 ` Gerald Schaefer
2008-03-28 15:53 ` Martin Schwidefsky
2008-03-28 16:03 ` Ingo Molnar [this message]
2008-03-12 17:32 ` [patch 10/10] System z large page support Martin Schwidefsky
2008-03-12 17:52 ` Dave Hansen
2008-03-12 22:14 ` Gerald Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080328160338.GA5687@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=gerald.schaefer@de.ibm.com \
--cc=haveblue@us.ibm.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=paulus@samba.org \
--cc=schwidefsky@de.ibm.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox