Re: (subset) [PATCH] PM: AVS: Use div64_ul instead of do_div

From: Bjorn Andersson
Date: Wed Dec 01 2021 - 10:13:14 EST


On Thu, 25 Nov 2021 01:43:11 +0000, cgel.zte@xxxxxxxxx wrote:
> From: Changcheng Deng <deng.changcheng@xxxxxxxxxx>
>
> do_div() does a 64-by-32 division. Here the divisor is an unsigned long
> which on some platforms is 64 bit wide. So use div64_ul instead of do_div
> to avoid a possible truncation.
>
>
> [...]

Applied, thanks!

[1/1] PM: AVS: Use div64_ul instead of do_div
commit: e07a98b28decb21f7bdbcb05bf2acc58ea03b1e4

Best regards,
--
Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>