[PATCH v2 18/26] genirq: Bail out early in free_desc()

2013-02-08 Thread Yinghai Lu
We pre-reserve irq range for hot-added ioapic, and later only some are used via realloc. So during hot-remove, we need to clear bits in allocated_irqs for both case. Check if the irq_desc is there at first, and bail out early if irq_desc is not allocated yet. So we can use irq_free_descs to

[PATCH v2 18/26] genirq: Bail out early in free_desc()

2013-02-08 Thread Yinghai Lu
We pre-reserve irq range for hot-added ioapic, and later only some are used via realloc. So during hot-remove, we need to clear bits in allocated_irqs for both case. Check if the irq_desc is there at first, and bail out early if irq_desc is not allocated yet. So we can use irq_free_descs to