summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
diff options
context:
space:
mode:
authorSaeed Mahameed2018-11-20 23:12:21 +0100
committerSaeed Mahameed2018-11-26 22:39:33 +0100
commit41069256e93045a45a2c359c9715439be0b47bf4 (patch)
treeab0f2f4006eb062105589bf7a22d2c1e986c535f /drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
parentnet/mlx5: FPGA, Use async events chain (diff)
downloadkernel-qcow2-linux-41069256e93045a45a2c359c9715439be0b47bf4.tar.gz
kernel-qcow2-linux-41069256e93045a45a2c359c9715439be0b47bf4.tar.xz
kernel-qcow2-linux-41069256e93045a45a2c359c9715439be0b47bf4.zip
net/mlx5: Clock, Use async events chain
Remove the explicit call to mlx5_pps_event on MLX5_EVENT_TYPE_PPS_EVENT and let clock logic to register its own handler when its ready. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
index 263cb6e2aeee..31600924bdc3 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
@@ -36,7 +36,6 @@
#if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
void mlx5_init_clock(struct mlx5_core_dev *mdev);
void mlx5_cleanup_clock(struct mlx5_core_dev *mdev);
-void mlx5_pps_event(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe);
static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev)
{
@@ -60,8 +59,6 @@ static inline ktime_t mlx5_timecounter_cyc2time(struct mlx5_clock *clock,
#else
static inline void mlx5_init_clock(struct mlx5_core_dev *mdev) {}
static inline void mlx5_cleanup_clock(struct mlx5_core_dev *mdev) {}
-static inline void mlx5_pps_event(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe) {}
-
static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev)
{
return -1;