Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Andi Kleen
On Mon, Apr 30, 2007 at 12:49:04PM -0700, Zwane Mwaikambo wrote: > 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

Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Bill Irwin
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

Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Zwane Mwaikambo
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

[5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread William Lee Irwin III
On Mon, Apr 30, 2007 at 10:38:19AM -0700, William Lee Irwin III wrote: > Here's what I did for i386 for someone concerned about blowing the stack. Fix up the conflict between IRQ stacks and deep stacks by dynamically allocating IRQ stacks. Signed-off-by: William Irwin <[EMAIL PROTECTED]>

[5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread William Lee Irwin III
On Mon, Apr 30, 2007 at 10:38:19AM -0700, William Lee Irwin III wrote: Here's what I did for i386 for someone concerned about blowing the stack. Fix up the conflict between IRQ stacks and deep stacks by dynamically allocating IRQ stacks. Signed-off-by: William Irwin [EMAIL PROTECTED] Index:

Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Zwane Mwaikambo
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 *

Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Bill Irwin
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 *

Re: [5/6] dynamically allocate IRQ stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-04-30 Thread Andi Kleen
On Mon, Apr 30, 2007 at 12:49:04PM -0700, Zwane Mwaikambo wrote: 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