sdm: Correct time calculation logic

Nano seconds calculation is exceeding its limit causing wait function
to return EINVALID error. This change corrects the calculation of
Nano seconds passed to the wait call and ensures the nano seconds value
is within its permissible limits (< 1 Sec).

Change-Id: I220d72bcb466459d31282ec3e9b3624744aa7739
CRs-Fixed: 1048516
1 file changed