Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC - Software
Commits
47cda636
Commit
47cda636
authored
Dec 02, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic: trivial whitespace fixes
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
11a2ef31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
timestamp.c
kernel/wr_nic/timestamp.c
+3
-3
No files found.
kernel/wr_nic/timestamp.c
View file @
47cda636
...
...
@@ -32,12 +32,12 @@ void wrn_tx_tstamp_skb(struct wrn_dev *wrn, int desc)
wrn_ppsg_read_time
(
wrn
,
&
counter_ppsg
,
&
utc
);
/* We may be at the beginning og the next second */
if
(
counter_ppsg
<
d
->
cycles
)
if
(
counter_ppsg
<
d
->
cycles
)
utc
--
;
ts
.
tv_sec
=
(
s32
)
utc
&
0x7fffffff
;
ts
.
tv_nsec
=
d
->
cycles
*
NSEC_PER_TICK
;
if
(
!
(
d
->
valid
&
TS_INVALID
))
{
if
(
!
(
d
->
valid
&
TS_INVALID
))
{
hwts
=
skb_hwtstamps
(
skb
);
hwts
->
hwtstamp
=
timespec_to_ktime
(
ts
);
skb_tstamp_tx
(
skb
,
hwts
);
...
...
@@ -75,7 +75,7 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
wrn_ppsg_read_time
(
wrn
,
&
counter_ppsg
,
&
utc
);
if
(
counter_ppsg
<
(
tsval
&
0xfffffff
))
if
(
counter_ppsg
<
(
tsval
&
0xfffffff
))
utc
--
;
ts
.
tv_sec
=
(
s32
)
utc
&
0x7fffffff
;
...
...
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