msm: rpm-smd: Fix race conditions with SMP
msm: rpm-smd: Fix race conditions with SMP

When a rpm message is sent in a noirq context from Core 1, it is
possible that the ack is processed by Core 0. This would result in
the ack not getting propageted correctly to the client. Also, added a
check on error codes from a smd API.

Change-Id: Id983dc50ad85dfef8fe6971c4e5eda2e77f24d2b
Signed-off-by: Mahesh Sivasubramanian <d742c8926136147b41811902e91ce4bd1f5cc0f6@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas