Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
60d1358e
Commit
60d1358e
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 unused max_dly parameter
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6de8d4d4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
21 deletions
+0
-21
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
-17
No files found.
arch-sim/sim-startup.c
View file @
60d1358e
...
...
@@ -16,7 +16,6 @@ static struct pp_runtime_opts sim_master_rt_opts = {
.
clockAccuracy
=
PP_DEFAULT_CLOCK_ACCURACY
,
.
offsetScaledLogVariance
=
PP_DEFAULT_CLOCK_VARIANCE
,
},
.
max_dly
=
PP_DEFAULT_MAX_DELAY
,
.
flags
=
PP_DEFAULT_FLAGS
,
.
ap
=
PP_DEFAULT_AP
,
.
ai
=
PP_DEFAULT_AI
,
...
...
include/ppsi/constants.h
View file @
60d1358e
...
...
@@ -43,7 +43,6 @@
* same value as in ptpdv1
*/
#define PP_NR_FOREIGN_RECORDS 5
#define PP_DEFAULT_MAX_DELAY 0
#define PP_DEFAULT_TTL 1
/* We use an array of timeouts, with these indexes */
...
...
include/ppsi/pp-instance.h
View file @
60d1358e
...
...
@@ -16,7 +16,6 @@
*/
struct
pp_runtime_opts
{
ClockQuality
clock_quality
;
Integer32
max_dly
;
/* Maximum number of nanoseconds of delay */
Integer32
ttl
;
int
flags
;
/* see below */
Integer16
ap
,
ai
;
...
...
proto-standard/open-close.c
View file @
60d1358e
...
...
@@ -17,7 +17,6 @@ struct pp_runtime_opts __pp_default_rt_opts = {
.
clockAccuracy
=
PP_DEFAULT_CLOCK_ACCURACY
,
.
offsetScaledLogVariance
=
PP_DEFAULT_CLOCK_VARIANCE
,
},
.
max_dly
=
PP_DEFAULT_MAX_DELAY
,
.
flags
=
PP_DEFAULT_FLAGS
,
.
ap
=
PP_DEFAULT_AP
,
.
ai
=
PP_DEFAULT_AI
,
...
...
proto-standard/servo.c
View file @
60d1358e
...
...
@@ -124,23 +124,6 @@ static int pp_servo_bad_event(struct pp_instance *ppi)
/* Discard meanPathDelays that overflow a second (makes no sense) */
if
(
mpd
->
seconds
)
return
1
;
if
(
OPTS
(
ppi
)
->
max_dly
)
{
/* If maxDelay is 0 then it's OFF */
if
(
m_to_s_dly
->
seconds
||
s_to_m_dly
->
seconds
)
{
pp_diag
(
ppi
,
servo
,
1
,
"servo aborted, delay greater "
"than 1 second
\n
"
);
return
1
;
}
if
(
m_to_s_dly
->
nanoseconds
>
OPTS
(
ppi
)
->
max_dly
||
s_to_m_dly
->
nanoseconds
>
OPTS
(
ppi
)
->
max_dly
)
{
pp_diag
(
ppi
,
servo
,
1
,
"servo aborted, delay %d or %d "
"greater than configured maximum %d
\n
"
,
(
int
)
m_to_s_dly
->
nanoseconds
,
(
int
)
s_to_m_dly
->
nanoseconds
,
(
int
)
OPTS
(
ppi
)
->
max_dly
);
return
1
;
}
}
return
0
;
}
...
...
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