On Mon, 21 Feb 2011, Lars-Peter Clausen wrote: > On 02/19/2011 08:07 PM, Yinghai Lu wrote: > > On 02/19/2011 04:15 AM, tip-bot for Thomas Gleixner wrote: > > - if (start >= nr_irqs) { > > + if (start + cnt > nr_irqs) { > > ret = irq_expand_nr_irqs(cnt); > Just a minor thing, but if there are still unused irqs available at the end of > the current range, you'll end up expanding the range more then you need to. > So either do > irq_expand_nr_irqs(nr_irqs - start + cnt); > or change irq_expand_nr_irqs to let it take the new total number of irqs. Fun, I already changed YH's patch in that way :) > Btw., with this patch in place does it make sense to initialize nr_irqs to > anything else then initcnt in early_irq_init? Probably not. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |