RE: [patch V2] wireless: mwifiex: Use the proper interfaces

2014-06-13 Thread Bing Zhao
> > + u32 queue_delay = ktime_to_ms(net_timedelta(skb->tstamp)); > > FWIW, I think the same as patch 12 applies here. net_timedelta() doesn't > really seem to be a good way to calculate time deltas. Shall we change net_timedelta to ktime_sub() using ktime_get()? + u32 queue_delay = ktim

Re: [patch V2] wireless: mwifiex: Use the proper interfaces

2014-06-12 Thread Johannes Berg
On Thu, 2014-06-12 at 10:31 +0200, Thomas Gleixner wrote: > + u32 queue_delay = ktime_to_ms(net_timedelta(skb->tstamp)); FWIW, I think the same as patch 12 applies here. net_timedelta() doesn't really seem to be a good way to calculate time deltas. And yes - I've seen situations where this m