diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2022-02-02 12:33:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-03 17:00:57 +0300 |
commit | f77222d693cc04a881bcd0bded3dd1229c70d7ef (patch) | |
tree | bf8421bac786b7ac8246f637c33097399eb56d1c /drivers/ptp | |
parent | bfcbb76b0f595ea9ede9f7a218086fef85242f10 (diff) | |
download | linux-f77222d693cc04a881bcd0bded3dd1229c70d7ef.tar.xz |
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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_vclock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ptp/ptp_vclock.c b/drivers/ptp/ptp_vclock.c index ab1d233173e1..5aa2b32d9dc7 100644 --- a/drivers/ptp/ptp_vclock.c +++ b/drivers/ptp/ptp_vclock.c @@ -84,8 +84,7 @@ static long ptp_vclock_refresh(struct ptp_clock_info *ptp) static const struct ptp_clock_info ptp_vclock_info = { .owner = THIS_MODULE, .name = "ptp virtual clock", - /* The maximum ppb value that long scaled_ppm can support */ - .max_adj = 32767999, + .max_adj = 500000000, .adjfine = ptp_vclock_adjfine, .adjtime = ptp_vclock_adjtime, .gettime64 = ptp_vclock_gettime, |