On Mon, 30 Apr 2007, William Lee Irwin III wrote: > -static char softirq_stack[NR_CPUS * THREAD_SIZE] > - __attribute__((__aligned__(THREAD_SIZE))); > +static DEFINE_PER_CPU(char *, softirq_stack); > +static DEFINE_PER_CPU(char *, hardirq_stack); > > -static char hardirq_stack[NR_CPUS * THREAD_SIZE] > - __attribute__((__aligned__(THREAD_SIZE))); > +#ifdef CONFIG_VMALLOC_STACK > +static void * __init __alloc_irqstack(int cpu) How about just using DEFINE_PER_CPU and allowing the percpu code dynamically allocate. - 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/
- Follow-Ups:
- Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- From: Andi Kleen <andi@firstfloor.org>
- Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- From: Bill Irwin <bill.irwin@oracle.com>
- Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- References:
- [-mm patch] i386: enable 4k stacks by default
- From: Adrian Bunk <bunk@stusta.de>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: Zan Lynx <zlynx@acm.org>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: David Chinner <dgc@sgi.com>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: Alan Cox <alan@lxorguk.ukuu.org.uk>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: Andi Kleen <andi@firstfloor.org>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: Christoph Hellwig <hch@infradead.org>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: Andi Kleen <andi@firstfloor.org>
- Re: [-mm patch] i386: enable 4k stacks by default
- From: William Lee Irwin III <wli@holomorphy.com>
- [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- From: William Lee Irwin III <wli@holomorphy.com>
- [-mm patch] i386: enable 4k stacks by default
- Prev by Date: Re: 2.6.21-rc7-mm2 crash: Eeek! page_mapcount(page) went negative! (-1)
- Next by Date: Re: Revert "[POWERPC] <various>"
- Previous by thread: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- Next by thread: Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)
- Index(es):
![]() |