[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1513323522-15021-25-git-send-email-sagar.a.kamble@intel.com>
Date: Fri, 15 Dec 2017 13:08:39 +0530
From: Sagar Arun Kamble <sagar.a.kamble@...el.com>
To: linux-kernel@...r.kernel.org
Cc: Sagar Arun Kamble <sagar.a.kamble@...el.com>,
Richard Cochran <richardcochran@...il.com>,
Saeed Mahameed <saeedm@...lanox.com>,
Matan Barak <matanb@...lanox.com>,
Leon Romanovsky <leonro@...lanox.com>,
Eugenia Emantayev <eugenia@...lanox.com>,
Eitan Rabin <rabin@...lanox.com>,
Feras Daoud <ferasda@...lanox.com>,
Tariq Toukan <tariqt@...lanox.com>,
Thomas Gleixner <tglx@...utronix.de>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org
Subject: [PATCH 24/27] net/mlx5: Use timecounter_reset interface
With new interface timecounter_reset we can update the start time for
timecounter. Update mlx5_ptp_settime with this new function.
Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@...el.com>
Cc: Richard Cochran <richardcochran@...il.com>
Cc: Saeed Mahameed <saeedm@...lanox.com>
Cc: Matan Barak <matanb@...lanox.com>
Cc: Leon Romanovsky <leonro@...lanox.com>
Cc: Eugenia Emantayev <eugenia@...lanox.com>
Cc: Eitan Rabin <rabin@...lanox.com>
Cc: Feras Daoud <ferasda@...lanox.com>
Cc: Tariq Toukan <tariqt@...lanox.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: netdev@...r.kernel.org
Cc: linux-rdma@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
---
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
index 071f78a..e490522 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
@@ -122,7 +122,7 @@ static int mlx5_ptp_settime(struct ptp_clock_info *ptp,
unsigned long flags;
write_lock_irqsave(&clock->lock, flags);
- timecounter_init(&clock->tc, ns);
+ timecounter_reset(&clock->tc, ns);
write_unlock_irqrestore(&clock->lock, flags);
return 0;
--
1.9.1
Powered by blists - more mailing lists