kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
.. .. @@ -45,12 +45,13 @@ 45 45 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock, 46 46 u64 timestamp) 47 47 { 48 + struct mlx5_timer *timer = &clock->timer;48 49 unsigned int seq; 49 50 u64 nsec; 50 51 51 52 do { 52 53 seq = read_seqbegin(&clock->lock); 53 - nsec = timecounter_cyc2time(&clock->tc, timestamp);54 + nsec = timecounter_cyc2time(&timer->tc, timestamp);54 55 } while (read_seqretry(&clock->lock, seq)); 55 56 56 57 return ns_to_ktime(nsec);