Message ID | 1513323522-15021-22-git-send-email-sagar.a.kamble@intel.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
Series | [01/27] timecounter: Make cyclecounter struct part of timecounter struct | expand |
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Sagar Arun Kamble > Sent: Thursday, December 14, 2017 11:39 PM > To: linux-kernel@vger.kernel.org > Cc: intel-wired-lan@lists.osuosl.org; Richard Cochran > <richardcochran@gmail.com>; Kamble, Sagar A > <sagar.a.kamble@intel.com>; netdev@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH 21/27] igb: Use timecounter_reset > interface > > With new interface timecounter_reset we can update the start time for > timecounter. Update igb_ptp_settime_82576 with this new function. > > Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> > Cc: Richard Cochran <richardcochran@gmail.com> > Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com> > Cc: intel-wired-lan@lists.osuosl.org > Cc: netdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/net/ethernet/intel/igb/igb_ptp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Tested-by: Aaron Brown <aaron.f.brown@intel.com>
diff --git a/drivers/net/ethernet/intel/igb/igb_ptp.c b/drivers/net/ethernet/intel/igb/igb_ptp.c index f6c1a8d..90344b2 100644 --- a/drivers/net/ethernet/intel/igb/igb_ptp.c +++ b/drivers/net/ethernet/intel/igb/igb_ptp.c @@ -330,7 +330,7 @@ static int igb_ptp_settime_82576(struct ptp_clock_info *ptp, spin_lock_irqsave(&igb->tmreg_lock, flags); - timecounter_init(&igb->tc, ns); + timecounter_reset(&igb->tc, ns); spin_unlock_irqrestore(&igb->tmreg_lock, flags);
With new interface timecounter_reset we can update the start time for timecounter. Update igb_ptp_settime_82576 with this new function. Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Cc: intel-wired-lan@lists.osuosl.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/intel/igb/igb_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)