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
50
Issues
50
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
dce94188
Commit
dce94188
authored
Feb 26, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: remove assign_TimeInternal
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a87987c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
+2
-15
ppsi.h
include/ppsi/ppsi.h
+0
-1
arith.c
proto-ext-whiterabbit/arith.c
+0
-11
common-fun.c
proto-ext-whiterabbit/common-fun.c
+2
-3
No files found.
include/ppsi/ppsi.h
View file @
dce94188
...
...
@@ -361,7 +361,6 @@ extern int msg_issue_pdelay_resp_follow_up(struct pp_instance *ppi,
extern
void
int64_to_TimeInternal
(
Integer64
bigint
,
TimeInternal
*
internal
);
extern
int
from_TimeInternal
(
TimeInternal
*
internal
,
Timestamp
*
external
);
extern
int
to_TimeInternal
(
TimeInternal
*
internal
,
Timestamp
*
external
);
extern
void
assign_TimeInternal
(
TimeInternal
*
to
,
TimeInternal
*
from
);
extern
void
add_TimeInternal
(
TimeInternal
*
r
,
TimeInternal
*
x
,
TimeInternal
*
y
);
extern
void
sub_TimeInternal
(
TimeInternal
*
r
,
TimeInternal
*
x
,
TimeInternal
*
y
);
extern
void
set_TimeInternal
(
TimeInternal
*
t
,
Integer32
s
,
Integer32
ns
);
...
...
proto-ext-whiterabbit/arith.c
View file @
dce94188
...
...
@@ -106,17 +106,6 @@ void set_TimeInternal(TimeInternal *t, Integer32 s, Integer32 ns)
t
->
nanoseconds
=
ns
;
}
void
assign_TimeInternal
(
TimeInternal
*
to
,
TimeInternal
*
from
)
{
to
->
seconds
=
from
->
seconds
;
to
->
nanoseconds
=
from
->
nanoseconds
;
to
->
phase
=
from
->
phase
;
to
->
correct
=
from
->
correct
;
to
->
raw_phase
=
from
->
raw_phase
;
to
->
raw_nsec
=
from
->
raw_nsec
;
to
->
raw_ahead
=
from
->
raw_ahead
;
}
void
display_TimeInternal
(
const
char
*
label
,
TimeInternal
*
t
)
{
PP_VPRINTF
(
"%s: %s%d.%09d
\n
"
,
label
,
...
...
proto-ext-whiterabbit/common-fun.c
View file @
dce94188
...
...
@@ -42,8 +42,7 @@ int st_com_execute_slave(struct pp_instance *ppi, int check_delayreq)
ret
=
msg_issue_delay_req
(
ppi
);
assign_TimeInternal
(
&
ppi
->
delay_req_send_time
,
&
ppi
->
last_snt_time
);
ppi
->
delay_req_send_time
=
ppi
->
last_snt_time
;
/* Add latency */
add_TimeInternal
(
&
ppi
->
delay_req_send_time
,
...
...
@@ -208,7 +207,7 @@ int st_com_slave_handle_sync(struct pp_instance *ppi, unsigned char *buf,
time
=
&
ppi
->
last_rcv_time
;
if
(
ppi
->
is_from_cur_par
)
{
assign_TimeInternal
(
&
ppi
->
sync_receive_time
,
time
)
;
ppi
->
sync_receive_time
=
*
time
;
/* FIXME diag to file? will we ever handle it?
if (OPTS(ppi)->recordFP)
...
...
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