On 10/11/2020 14:55, Tom Rini wrote:
On Tue, Nov 10, 2020 at 11:05:37AM +0200, Tero Kristo wrote:

Copy the best rational approximation calculation routines from Linux.
Typical usecase for these routines is to calculate the M/N divider
values for PLLs to reach a specific clock rate.

Signed-off-by: Tero Kristo <t-kri...@ti.com>

Please say what version of the Linux kernel this is from, for easier
later re-syncing.  Thanks.


This is based on kernel commit:

commit 323dd2c3ed0641f49e89b4e420f9eef5d3d5a881
Author: Trent Piepho <tpie...@gmail.com>
Date:   Wed Dec 4 16:51:57 2019 -0800

lib/math/rational.c: fix possible incorrect result from rational fractions helper

-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. 
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Reply via email to