Re: [PATCH 00/05] robust per_cpu allocation for modules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Subject: Re: [PATCH 00/05] robust per_cpu allocation for modules
- From: Sam Ravnborg <sam@xxxxxxxxxxxx>
- Date: Sun, 16 Apr 2006 16:03:59 +0200
- Cc: Paul Mackerras <paulus@xxxxxxxxx>, Nick Piggin <nickpiggin@xxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, Martin Mares <mj@xxxxxxxxxxxxxxxxxxxxxxxx>, bjornw@xxxxxxxx, schwidefsky@xxxxxxxxxx, benedict.gaster@xxxxxxxxxx, lethal@xxxxxxxxxxxx, Chris Zankel <chris@xxxxxxxxxx>, Marc Gauthier <marc@xxxxxxxxxxxxx>, Joe Taylor <joe@xxxxxxxxxxxxx>, David Mosberger-Tang <davidm@xxxxxxxxxx>, rth@xxxxxxxxxxx, spyro@xxxxxxx, starvik@xxxxxxxx, tony.luck@xxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, grundler@xxxxxxxxxxxxxxxx, parisc-linux@xxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxx, linux390@xxxxxxxxxx, davem@xxxxxxxxxxxxx, rusty@xxxxxxxxxxxxxxx
- In-reply-to: <1145194804.27407.103.camel@xxxxxxxxxxxxxxxxxxxxx>
- References: <1145049535.1336.128.camel@xxxxxxxxxxxxxxxxxxxxx> <4440855A.7040203@xxxxxxxxxxxx> <Pine.LNX.4.58.0604151609340.11302@xxxxxxxxxxxxxxxxxxx> <4441B02D.4000405@xxxxxxxxxxxx> <Pine.LNX.4.58.0604152323560.16853@xxxxxxxxxxxxxxxxxxx> <17473.60411.690686.714791@xxxxxxxxxxxxxxxxxxxx> <1145194804.27407.103.camel@xxxxxxxxxxxxxxxxxxxxx>
- User-agent: Mutt/1.5.11
On Sun, Apr 16, 2006 at 09:40:04AM -0400, Steven Rostedt wrote:
> The per_cpu variables are defined with the macro
> DEFINE_PER_CPU(type, var)
>
> This macro just places the variable into the section .data.percpu and
> prepends the prefix "per_cpu__" to the variable.
>
> To use this variable in another .c file the declaration is used by the
> macro
> DECLARE_PER_CPU(type, var)
>
> This macro is simply the extern declaration of the variable with the
> prefix added.
Suprisingly this macro shows up in ~19 .c files. Only valid usage is
forward declaration of a later static definition with DEFINE_PER_CPU.
arch/m32r/kernel/smp.c + arch/m32r/kernel/smpboot.c is jsut one example.
Just a random comment not related to Steven's patches.
Sam
-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]