[PATCH] clk: sunxi-ng: mp: Avoid computing the rate twice

Stephen Boyd sboyd at kernel.org
Mon Aug 15 10:26:51 PDT 2022


Quoting Samuel Holland (2022-08-09 18:40:24)
> ccu_mp_find_best() already computes a best_rate at the same time as the
> best m and p factors. Return it so the caller does not need to duplicate
> the division.

Did the compiler figure this out and thus this patch makes no difference
to the final object code?



More information about the linux-arm-kernel mailing list