Add process for more than one irq at the same time v5

From: Zhou Yanjie
Date: Wed Oct 02 2019 - 07:26:38 EST


Rebase on top of Paul Cercueil's patches and drop unneeded changes as
Paul Cercueil's advice.