Fix initialization of frequency estimation interval.
The clock_sync_interval() function is called when logSyncInterval changes from zero. Call it also when the clock is created to have fest.max_count set accordingly to freq_est_interval even with zero logSyncInterval. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
5e22865728
commit
1e9db8b8dd
2
clock.c
2
clock.c
|
@ -499,7 +499,7 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
|
||||||
c->pollfd[i].events = 0;
|
c->pollfd[i].events = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
c->fest.max_count = 2;
|
clock_sync_interval(c, 0);
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
c->fault_timeout[i] = iface[i].pod.fault_reset_interval;
|
c->fault_timeout[i] = iface[i].pod.fault_reset_interval;
|
||||||
|
|
Loading…
Reference in New Issue