phc2sys: reset sync offset if non PTP timescale

When grandmaster does not use PTP timescale but the previous one did, we
need to reset sync offset and leap flag.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
master
Jiri Benc 2014-06-11 21:35:25 +02:00 committed by Richard Cochran
parent 1a1e02aa97
commit f28a3b3664
1 changed files with 3 additions and 0 deletions

View File

@ -867,6 +867,9 @@ static int run_pmc_get_utc_offset(struct node *node, int timeout)
node->leap = -1; node->leap = -1;
else else
node->leap = 0; node->leap = 0;
} else {
node->sync_offset = 0;
node->leap = 0;
} }
msg_put(msg); msg_put(msg);
return 1; return 1;