]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: increase maximum adjustment of virtual clocks.
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 2 Feb 2022 09:33:56 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 14:00:57 +0000 (14:00 +0000)
commitf77222d693cc04a881bcd0bded3dd1229c70d7ef
treebf8421bac786b7ac8246f637c33097399eb56d1c
parentbfcbb76b0f595ea9ede9f7a218086fef85242f10
ptp: increase maximum adjustment of virtual clocks.

Increase the maximum frequency offset of virtual clocks to 50% to enable
faster slewing corrections.

This value cannot be represented as scaled ppm when long has 32 bits,
but that is already the case for other drivers, even those that provide
the adjfine() function, i.e. 32-bit applications are expected to check
for the limit.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_vclock.c