]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
allwinner: clk: Fix nm clock calculation
authorEmmanuel Vadot <manu@FreeBSD.org>
Wed, 5 Aug 2020 08:31:26 +0000 (08:31 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Wed, 5 Aug 2020 08:31:26 +0000 (08:31 +0000)
commit738fc84a7a946937fd3579fb94264973459cda52
tree60f8d9f871d875048345eb48e142e03801b3d5f9
parent18f67bc413e8a4e6b313c023e8612603f1ea17c0
allwinner: clk: Fix nm clock calculation

Use the right factor when finding the best frequency and compare the
absolute value of the result.

Submitted by: kibab
MFC after: 3 days
sys/arm/allwinner/clkng/aw_clk_nm.c