RE: [patch V2] wireless: mwifiex: Use the proper interfaces
From: Bing Zhao
Date: Fri Jun 13 2014 - 14:32:46 EST
> > + 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 = ktime_to_ms(ktime_sub(ktime_get(), skb->tstamp));
Thanks,
Bing
>
> And yes - I've seen situations where this matters, e.g. when running
> ntpdate after system startup.
>
> johannes
>