Thread (40 messages) 40 messages, 6 authors, 2015-03-31

Re: [PATCH net-next V2 13/23] ptp: igb: convert to the 64 bit get/set time methods.

From: Arnd Bergmann <hidden>
Date: 2015-03-22 02:41:10
Also in: lkml

On Saturday 21 March 2015, Richard Cochran wrote:
quoted hunk ↗ jump to hunk
@@ -269,13 +270,13 @@ static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta)
        struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
                                               ptp_caps);
        unsigned long flags;
-       struct timespec now, then = ns_to_timespec(delta);
+       struct timespec64 now, then = ns_to_timespec64(delta);
 
        spin_lock_irqsave(&igb->tmreg_lock, flags);
 
        igb_ptp_read_i210(igb, &now);
-       now = timespec_add(now, then);
-       igb_ptp_write_i210(igb, (const struct timespec *)&now);
+       now = timespec64_add(now, then);
+       igb_ptp_write_i210(igb, (const struct timespec64 *)&now);
 
        spin_unlock_irqrestore(&igb->tmreg_lock, flags);
 
This is one of the functions that would actually become more efficient if
the argument type gets changed to ktime_t.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help