Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-07 Thread Matt Redfearn
Hi Jason, On 06/12/16 22:13, Jason A. Donenfeld wrote: On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions. Because in

Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-07 Thread Matt Redfearn
Hi Jason, On 06/12/16 22:13, Jason A. Donenfeld wrote: On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions. Because in the IRQ entry point in

Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-06 Thread Jason A. Donenfeld
On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: > +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions.

Re: [PATCH 1/5] MIPS: Introduce irq_stack

2016-12-06 Thread Jason A. Donenfeld
On Fri, Dec 2, 2016 at 2:39 PM, Matt Redfearn wrote: > +void *irq_stack[NR_CPUS]; I'm curious why you implemented it this way rather than using DEFINE_PER_CPU and the related percpu helper functions.

[PATCH 1/5] MIPS: Introduce irq_stack

2016-12-02 Thread Matt Redfearn
Allocate a per-cpu irq stack for use within interrupt handlers. Also add a utility function on_irq_stack to determine if a given stack pointer is within the irq stack for that cpu. Signed-off-by: Matt Redfearn --- arch/mips/include/asm/irq.h| 12

[PATCH 1/5] MIPS: Introduce irq_stack

2016-12-02 Thread Matt Redfearn
Allocate a per-cpu irq stack for use within interrupt handlers. Also add a utility function on_irq_stack to determine if a given stack pointer is within the irq stack for that cpu. Signed-off-by: Matt Redfearn --- arch/mips/include/asm/irq.h| 12