Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
94cd60d0
Commit
94cd60d0
authored
Nov 21, 2013
by
Laurence Evans
Committed by
Ben Hutchings
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: PTP - tidy up unused/useless variables
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
bc0f3c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/ptp.c
+1
-15
No files found.
drivers/net/ethernet/sfc/ptp.c
View file @
94cd60d0
...
@@ -237,9 +237,6 @@ struct efx_ptp_timeset {
...
@@ -237,9 +237,6 @@ struct efx_ptp_timeset {
* @evt_code: Last event code
* @evt_code: Last event code
* @start: Address at which MC indicates ready for synchronisation
* @start: Address at which MC indicates ready for synchronisation
* @host_time_pps: Host time at last PPS
* @host_time_pps: Host time at last PPS
* @last_sync_ns: Last number of nanoseconds between readings when synchronising
* @base_sync_ns: Number of nanoseconds for last synchronisation.
* @base_sync_valid: Whether base_sync_time is valid.
* @current_adjfreq: Current ppb adjustment.
* @current_adjfreq: Current ppb adjustment.
* @phc_clock: Pointer to registered phc device
* @phc_clock: Pointer to registered phc device
* @phc_clock_info: Registration structure for phc device
* @phc_clock_info: Registration structure for phc device
...
@@ -274,9 +271,6 @@ struct efx_ptp_data {
...
@@ -274,9 +271,6 @@ struct efx_ptp_data {
int
evt_code
;
int
evt_code
;
struct
efx_buffer
start
;
struct
efx_buffer
start
;
struct
pps_event_time
host_time_pps
;
struct
pps_event_time
host_time_pps
;
unsigned
last_sync_ns
;
unsigned
base_sync_ns
;
bool
base_sync_valid
;
s64
current_adjfreq
;
s64
current_adjfreq
;
struct
ptp_clock
*
phc_clock
;
struct
ptp_clock
*
phc_clock
;
struct
ptp_clock_info
phc_clock_info
;
struct
ptp_clock_info
phc_clock_info
;
...
@@ -482,18 +476,10 @@ efx_ptp_process_times(struct efx_nic *efx, MCDI_DECLARE_STRUCT_PTR(synch_buf),
...
@@ -482,18 +476,10 @@ efx_ptp_process_times(struct efx_nic *efx, MCDI_DECLARE_STRUCT_PTR(synch_buf),
if
(
ngood
==
0
)
{
if
(
ngood
==
0
)
{
netif_warn
(
efx
,
drv
,
efx
->
net_dev
,
netif_warn
(
efx
,
drv
,
efx
->
net_dev
,
"PTP no suitable synchronisations %dns
\n
"
,
"PTP no suitable synchronisations
\n
"
);
ptp
->
base_sync_ns
);
return
-
EAGAIN
;
return
-
EAGAIN
;
}
}
/* Average minimum this synchronisation */
ptp
->
last_sync_ns
=
DIV_ROUND_UP
(
total
,
ngood
);
if
(
!
ptp
->
base_sync_valid
||
(
ptp
->
last_sync_ns
<
ptp
->
base_sync_ns
))
{
ptp
->
base_sync_valid
=
true
;
ptp
->
base_sync_ns
=
ptp
->
last_sync_ns
;
}
/* Calculate delay from actual PPS to last_time */
/* Calculate delay from actual PPS to last_time */
delta
.
tv_nsec
=
delta
.
tv_nsec
=
ptp
->
timeset
[
last_good
].
nanoseconds
+
ptp
->
timeset
[
last_good
].
nanoseconds
+
...
...
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