Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
cde98696
Commit
cde98696
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
kernel: remove temporary hack that disabled stamping
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a837900a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kernel/wr_nic/nic-core.c
+0
-1
0 additions, 1 deletion
kernel/wr_nic/nic-core.c
kernel/wr_nic/timestamp.c
+0
-2
0 additions, 2 deletions
kernel/wr_nic/timestamp.c
with
0 additions
and
3 deletions
kernel/wr_nic/nic-core.c
+
0
−
1
View file @
cde98696
...
@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
...
@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
/* RX timestamping part */
/* RX timestamping part */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
//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
)
if
(
counter_ppsg
<
REFCLK_FREQ
/
4
&&
ts_r
>
3
*
REFCLK_FREQ
/
4
)
utc
--
;
utc
--
;
...
...
This diff is collapsed.
Click to expand it.
kernel/wr_nic/timestamp.c
+
0
−
2
View file @
cde98696
...
@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc)
...
@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc)
/* so we found the skb, do the timestamping magic */
/* so we found the skb, do the timestamping magic */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
//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
/* 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
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)
...
@@ -87,7 +86,6 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
skb
=
wrn
->
skb_desc
[
i
].
skb
;
skb
=
wrn
->
skb_desc
[
i
].
skb
;
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return
0
;
/* FIXME: temporary hack */
if
(
counter_ppsg
<
(
tsval
&
0xfffffff
))
if
(
counter_ppsg
<
(
tsval
&
0xfffffff
))
utc
--
;
utc
--
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment