soc: fsl: qbman: Check if CPU is offline when initializing portals
authorRoy Pledge <roy.pledge@nxp.com>
Fri, 28 Sep 2018 08:43:20 +0000 (11:43 +0300)
committerLi Yang <leoyang.li@nxp.com>
Fri, 5 Oct 2018 19:01:46 +0000 (14:01 -0500)
commit9beaf661d6a72b7c05efb4b33d228032c7152f34
tree1b70ad14038759d6e9e833616fa4ec55fb9e0894
parent56740a7167cbbbda99ebfd3e8b4e4d51ae39bd06
soc: fsl: qbman: Check if CPU is offline when initializing portals

If the CPU to affine the portal interrupt is offline at boot time
affine the portal interrupt to another online CPU. If the CPU is later
brought online the hotplug handler will correctly adjust the affinity.
Moved common code in a function.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/qbman/bman.c
drivers/soc/fsl/qbman/dpaa_sys.h
drivers/soc/fsl/qbman/qman.c