Skip to content

Commit

Permalink
net: lan743x_ptp: convert to ktime_get_clocktai_ts64
Browse files Browse the repository at this point in the history
timekeeping_clocktai64() has been renamed to ktime_get_clocktai_ts64()
for consistency with the other ktime_get_* access functions.

Rename the new caller that has come up as well.

Question: this is the only ptp driver that sets the hardware time
to the current system time in TAI. Why does it do that?

Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
arndb authored and davem330 committed Aug 19, 2018
1 parent 653cd28 commit 0b3e776
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/microchip/lan743x_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,7 @@ static void lan743x_ptp_sync_to_system_clock(struct lan743x_adapter *adapter)
{
struct timespec64 ts;

memset(&ts, 0, sizeof(ts));
timekeeping_clocktai64(&ts);
ktime_get_clocktai_ts64(&ts);

lan743x_ptp_clock_set(adapter, ts.tv_sec, ts.tv_nsec, 0);
}
Expand Down

0 comments on commit 0b3e776

Please sign in to comment.