Modify PI servo to set frequency when jumping.
Similarly to the servo in phc2sys, when clock is stepped, set immediately also its frequency. This significantly improves the initial convergence with large frequency offsets. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
ab29608e0b
commit
af2a4f47fb
1
clock.c
1
clock.c
|
@ -867,6 +867,7 @@ enum servo_state clock_synchronize(struct clock *c,
|
||||||
case SERVO_UNLOCKED:
|
case SERVO_UNLOCKED:
|
||||||
break;
|
break;
|
||||||
case SERVO_JUMP:
|
case SERVO_JUMP:
|
||||||
|
clock_ppb(c->clkid, -adj);
|
||||||
clock_step(c->clkid, -c->master_offset);
|
clock_step(c->clkid, -c->master_offset);
|
||||||
c->t1 = tmv_zero();
|
c->t1 = tmv_zero();
|
||||||
c->t2 = tmv_zero();
|
c->t2 = tmv_zero();
|
||||||
|
|
Loading…
Reference in New Issue