Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
6de8d4d4
Commit
6de8d4d4
authored
Oct 25, 2016
by
Alessandro Rubini
Committed by
Adam Wujek
Nov 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audit: remove unsed max_rst parameter
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
be01acb0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
19 deletions
+0
-19
sim-startup.c
arch-sim/sim-startup.c
+0
-1
constants.h
include/ppsi/constants.h
+0
-1
pp-instance.h
include/ppsi/pp-instance.h
+0
-1
open-close.c
proto-standard/open-close.c
+0
-1
servo.c
proto-standard/servo.c
+0
-15
No files found.
arch-sim/sim-startup.c
View file @
6de8d4d4
...
...
@@ -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
,
...
...
include/ppsi/constants.h
View file @
6de8d4d4
...
...
@@ -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
...
...
include/ppsi/pp-instance.h
View file @
6de8d4d4
...
...
@@ -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 */
...
...
proto-standard/open-close.c
View file @
6de8d4d4
...
...
@@ -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
,
...
...
proto-standard/servo.c
View file @
6de8d4d4
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment