|
@@ -261,18 +261,9 @@ static int ixgbe_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta)
|
|
|
struct ixgbe_adapter *adapter =
|
|
|
container_of(ptp, struct ixgbe_adapter, ptp_caps);
|
|
|
unsigned long flags;
|
|
|
- u64 now;
|
|
|
|
|
|
spin_lock_irqsave(&adapter->tmreg_lock, flags);
|
|
|
-
|
|
|
- now = timecounter_read(&adapter->tc);
|
|
|
- now += delta;
|
|
|
-
|
|
|
- /* reset the timecounter */
|
|
|
- timecounter_init(&adapter->tc,
|
|
|
- &adapter->cc,
|
|
|
- now);
|
|
|
-
|
|
|
+ timecounter_adjtime(&adapter->tc, delta);
|
|
|
spin_unlock_irqrestore(&adapter->tmreg_lock, flags);
|
|
|
|
|
|
ixgbe_ptp_setup_sdp(adapter);
|