[patch 02/30] genirq: Move status flag checks to core