[PATCH 4.19 01/78] irq/matrix: Split out the CPU selection code into a helper