From: Sam Ravnborg <sam@ravnborg.org>
To: travis@sgi.com
Cc: mingo@elte.hu, Andrew Morton <akpm@linux-foundation.org>,
Andi Kleen <ak@suse.de>, Christoph Lameter <clameter@sgi.com>,
Jack Steiner <steiner@sgi.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: [PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup
Date: Tue, 8 Jan 2008 20:24:25 +0100 [thread overview]
Message-ID: <20080108192425.GB26491@uranus.ravnborg.org> (raw)
In-Reply-To: <20080108021142.835662000@sgi.com>
On Mon, Jan 07, 2008 at 06:11:43PM -0800, travis@sgi.com wrote:
> V1->V2:
> - Use def_bool as suggested by Randy.
>
> The use of the __GENERIC_PERCPU is a bit problematic since arches
> may want to run their own percpu setup while using the generic
> percpu definitions. Replace it through a kconfig variable.
>
>
>
> Cc: Rusty Russell <rusty@rustcorp.com.au>
> Cc: Andi Kleen <ak@suse.de>
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
> Signed-off-by: Mike Travis <travis@sgi.com>
>
> ---
> arch/ia64/Kconfig | 3 +++
> arch/powerpc/Kconfig | 3 +++
> arch/sparc64/Kconfig | 3 +++
> arch/x86/Kconfig | 3 +++
> include/asm-generic/percpu.h | 1 -
> include/asm-s390/percpu.h | 2 --
> include/asm-x86/percpu_32.h | 2 --
> init/main.c | 4 ++--
> 8 files changed, 14 insertions(+), 7 deletions(-)
>
> --- a/arch/ia64/Kconfig
> +++ b/arch/ia64/Kconfig
> @@ -80,6 +80,9 @@ config GENERIC_TIME_VSYSCALL
> bool
> default y
>
> +config ARCH_SETS_UP_PER_CPU_AREA
> + def_bool y
> +
> config DMI
> bool
> default y
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -42,6 +42,9 @@ config GENERIC_HARDIRQS
> bool
> default y
>
> +config ARCH_SETS_UP_PER_CPU_AREA
> + def_bool PPC64
> +
> config IRQ_PER_CPU
> bool
> default y
Please do not create one variable per arch to enable this functionality.
Define one common variable and name it:
config HAVE_SETUP_PER_CPU_AREA
and then for the arch's that supports it you select this symbol.
For X86 it would look like:
config X86
+ select HAVE_SETUP_PER_CPU_AREA
This is the recommended methiond today - albeit not widely used yet.
Sam
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-01-08 19:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 2:11 [PATCH 00/10] percpu: Per cpu code simplification V3 travis
2008-01-08 2:11 ` [PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup travis
2008-01-08 19:24 ` Sam Ravnborg [this message]
2008-01-08 2:11 ` [PATCH 02/10] percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.h travis
2008-01-08 2:11 ` [PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic" travis
2008-01-08 2:11 ` [PATCH 04/10] x86_32: Use generic percpu.h travis
2008-01-08 2:11 ` [PATCH 05/10] x86_64: Use generic percpu travis
2008-01-08 2:11 ` [PATCH 06/10] s390: " travis
2008-01-08 2:11 ` [PATCH 07/10] Powerpc: Use generic per cpu travis
2008-01-08 2:11 ` [PATCH 08/10] Sparc64: Use generic percpu travis
2008-01-08 2:11 ` [PATCH 09/10] ia64: " travis
2008-01-08 2:11 ` [PATCH 10/10] x86: Unify percpu.h travis
2008-01-08 9:07 ` [PATCH 00/10] percpu: Per cpu code simplification V3 Ingo Molnar
2008-01-08 16:27 ` Mike Travis
2008-01-08 19:04 ` Christoph Lameter
2008-01-08 22:16 ` Ingo Molnar
2008-01-08 23:53 ` Mike Travis
2008-01-08 19:26 ` Sam Ravnborg
2008-01-08 20:29 ` Mike Travis
-- strict thread matches above, loose matches on Subject: below --
2008-01-08 21:10 [PATCH 00/10] percpu: Per cpu code simplification V4 travis
2008-01-08 21:10 ` [PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup travis
2007-12-28 0:16 [PATCH 00/10] percpu: Per cpu code simplification V2 travis
2007-12-28 0:16 ` [PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup travis
2007-12-28 0:10 [PATCH 00/10] percpu: Per cpu code simplification V2 travis
2007-12-28 0:10 ` [PATCH 01/10] percpu: Use a kconfig variable to signal arch specific percpu setup travis
2007-12-28 0:15 ` David Miller, travis
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=20080108192425.GB26491@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=rusty@rustcorp.com.au \
--cc=steiner@sgi.com \
--cc=travis@sgi.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