[PORT FROM R2] mid_pmu: ipc and s0ix commands may race to hang system
BZ: 18334
It may be possible that s0ix and IPC are both racing to happen
and hence causing PMU IRQ 22 to be missed that causes a system
hang or fabric error.
Fixing this by serializing IPC and S0ix commands.
Using scu_ready_sem to serialize IPC, D0ix and S0ix commands.
Change-Id: I07fe58697a61c6f6c55d7884007e2875573e0ae2
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/29850
Reviewed-by: Ramachandra, Sudarshan N <sudarshan.n.ramachandra@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>