Re: [PATCH 6/7] irq: Optimize softirq stack selection in irq exit

2013-09-26 Thread Frederic Weisbecker
On Wed, Sep 25, 2013 at 04:04:28PM -0700, Linus Torvalds wrote: > On Wed, Sep 25, 2013 at 9:18 AM, Frederic Weisbecker > wrote: > > +#ifdef __ARCH_IRQ_EXIT_ON_IRQ_STACK > > Please don't introduce anymore of these insane ad-hoc crazy architecture > macros. > > Just make it a regular config opti

Re: [PATCH 6/7] irq: Optimize softirq stack selection in irq exit

2013-09-25 Thread Linus Torvalds
On Wed, Sep 25, 2013 at 9:18 AM, Frederic Weisbecker wrote: > +#ifdef __ARCH_IRQ_EXIT_ON_IRQ_STACK Please don't introduce anymore of these insane ad-hoc crazy architecture macros. Just make it a regular config option, which makes it much easier for architectures to just select it at config time.

[PATCH 6/7] irq: Optimize softirq stack selection in irq exit

2013-09-25 Thread Frederic Weisbecker
If irq_exit() is called on the arch's specified irq stack, it should be safe to run softirqs inline under that same irq stack as it is near empty by the time we call irq_exit(). Hardirqs can nest but irq exit's processing of softirqs only happen in the inner most hardirq. So if we use the same st