Commit 6de8d4d4 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

audit: remove unsed max_rst parameter

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent be01acb0
......@@ -16,7 +16,6 @@ static struct pp_runtime_opts sim_master_rt_opts = {
.clockAccuracy = PP_DEFAULT_CLOCK_ACCURACY,
.offsetScaledLogVariance = PP_DEFAULT_CLOCK_VARIANCE,
},
.max_rst = PP_DEFAULT_MAX_RESET,
.max_dly = PP_DEFAULT_MAX_DELAY,
.flags = PP_DEFAULT_FLAGS,
.ap = PP_DEFAULT_AP,
......
......@@ -43,7 +43,6 @@
* same value as in ptpdv1
*/
#define PP_NR_FOREIGN_RECORDS 5
#define PP_DEFAULT_MAX_RESET 0
#define PP_DEFAULT_MAX_DELAY 0
#define PP_DEFAULT_TTL 1
......
......@@ -16,7 +16,6 @@
*/
struct pp_runtime_opts {
ClockQuality clock_quality;
Integer32 max_rst; /* Maximum number of nanoseconds to reset */
Integer32 max_dly; /* Maximum number of nanoseconds of delay */
Integer32 ttl;
int flags; /* see below */
......
......@@ -17,7 +17,6 @@ struct pp_runtime_opts __pp_default_rt_opts = {
.clockAccuracy = PP_DEFAULT_CLOCK_ACCURACY,
.offsetScaledLogVariance = PP_DEFAULT_CLOCK_VARIANCE,
},
.max_rst = PP_DEFAULT_MAX_RESET,
.max_dly = PP_DEFAULT_MAX_DELAY,
.flags = PP_DEFAULT_FLAGS,
.ap = PP_DEFAULT_AP,
......
......@@ -312,21 +312,6 @@ int pp_servo_offset_master(struct pp_instance *ppi, TimeInternal * mpd,
sub_TimeInternal(ofm, m_to_s_dly, mpd);
pp_diag(ppi, servo, 1, "Offset from master: %s\n", fmt_TI(ofm));
if (OPTS(ppi)->max_rst) { /* If max_rst is 0 then it's OFF */
if (ofm->seconds) {
pp_diag(ppi, servo, 1, "servo aborted, offset greater "
"than 1 second\n");
return 1; /* not good but done */
}
if (ofm->nanoseconds > OPTS(ppi)->max_rst) {
pp_diag(ppi, servo, 1, "servo aborted, offset greater "
"than configured maximum %d\n",
OPTS(ppi)->max_rst);
return 1; /* not good but done */
}
}
if (ofm->seconds) {
TimeInternal time_tmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment