]> dgit.raspbian.org Git - linux-4.9.git/commit
clk: bcm2835: Minimise clock jitter for PCM clock
authorPhil Elwell <phil@raspberrypi.org>
Mon, 22 May 2017 12:56:41 +0000 (13:56 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:51:19 +0000 (02:51 +0000)
commit8e9272a7e0d831921124e73f9875efeb92f31bf0
treef8c70eca20cc83d475ef15e678136a76578292c9
parent840315c01d72dc86ade2ac3f43574e53d3932c8d
clk: bcm2835: Minimise clock jitter for PCM clock

Fractional clock dividers generate accurate average frequencies but
with jitter, particularly when the integer divisor is small.

Introduce a new metric of clock accuracy to penalise clocks with a good
average but worse jitter compared to clocks with an average which is no
better but with lower jitter. The metric is the ideal rate minus the
worse deviation from that ideal using the nearest integer divisors.

Use this metric for parent selection for clocks requiring low jitter
(currently just PCM).

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/clk/bcm/clk-bcm2835.c