forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
....@@ -45,12 +45,13 @@
4545 static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock,
4646 u64 timestamp)
4747 {
48
+ struct mlx5_timer *timer = &clock->timer;
4849 unsigned int seq;
4950 u64 nsec;
5051
5152 do {
5253 seq = read_seqbegin(&clock->lock);
53
- nsec = timecounter_cyc2time(&clock->tc, timestamp);
54
+ nsec = timecounter_cyc2time(&timer->tc, timestamp);
5455 } while (read_seqretry(&clock->lock, seq));
5556
5657 return ns_to_ktime(nsec);