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
cde98696
Commit
cde98696
authored
Sep 21, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: remove temporary hack that disabled stamping
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a837900a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
nic-core.c
kernel/wr_nic/nic-core.c
+0
-1
timestamp.c
kernel/wr_nic/timestamp.c
+0
-2
No files found.
kernel/wr_nic/nic-core.c
View file @
cde98696
...
...
@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
/* RX timestamping part */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
r1
|=
NIC_RX1_D1_TS_INCORRECT
;
/* FIXME: temporary hack */
if
(
counter_ppsg
<
REFCLK_FREQ
/
4
&&
ts_r
>
3
*
REFCLK_FREQ
/
4
)
utc
--
;
...
...
kernel/wr_nic/timestamp.c
View file @
cde98696
...
...
@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc)
/* so we found the skb, do the timestamping magic */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return
;
/* FIXME: temporary hack */
/* The timestamp nanoseconds value is closer to the end of previous second, but the UTC time
read from PPSG is at the beginning of the next second: adjust UTC seconds to avoid 1 sec
...
...
@@ -87,7 +86,6 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
skb
=
wrn
->
skb_desc
[
i
].
skb
;
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return
0
;
/* FIXME: temporary hack */
if
(
counter_ppsg
<
(
tsval
&
0xfffffff
))
utc
--
;
...
...
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