From: Jacob Keller Date: Mon, 26 Aug 2019 18:16:50 +0000 (-0700) Subject: i40e: use ktime_get_real_ts64 instead of ktime_to_timespec64 X-Git-Tag: v5.4-rc1~131^2~25^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4d8d90c1eccd6c922007147f827b24846e04da6;p=platform%2Fkernel%2Flinux-rpi.git i40e: use ktime_get_real_ts64 instead of ktime_to_timespec64 Remove a call to ktime_to_timespec64 by calling ktime_get_real_ts64 directly. Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_ptp.c b/drivers/net/ethernet/intel/i40e/i40e_ptp.c index 11394a5..9bf1ad4 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ptp.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ptp.c @@ -725,7 +725,7 @@ static long i40e_ptp_create_clock(struct i40e_pf *pf) pf->tstamp_config.tx_type = HWTSTAMP_TX_OFF; /* Set the previous "reset" time to the current Kernel clock time */ - pf->ptp_prev_hw_time = ktime_to_timespec64(ktime_get_real()); + ktime_get_real_ts64(&pf->ptp_prev_hw_time); pf->ptp_reset_start = ktime_get(); return 0;