soc: qcom: secure_buffer: change the way of divide

When compile kernel, we will get the following error:
	undefined reference to `__aeabi_uldivmod'
So we change the way of divide.

Change-Id: I632ea6778bc4e6e881a327c81e2e8650725388b0
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
This commit is contained in:
Tengfei Fan 2019-11-05 10:39:53 +08:00 • committed by Isaac J. Manjarres
commit 4a661f18c6

View file

@ -135,7 +135,7 @@ static int batched_hyp_assign(struct sg_table *table, struct scm_desc *desc)
batch_start += batches_processed;
}
total_delta = ktime_us_delta(ktime_get(), first_assign_ts);
trace_hyp_assign_end(total_delta, total_delta / i);
trace_hyp_assign_end(total_delta, div64_u64(total_delta, i));
kfree(sg_table_copy);
return ret;
}