On Tue, Apr 24, 2007 at 06:03:48PM +0200, Eric Dumazet wrote: > On Tue, 24 Apr 2007 17:53:24 +0200 > Adrian Bunk <[EMAIL PROTECTED]> wrote: > > Couldn't this be better solved by adding something like the following > > to include/linux/ktime.h ? > > > > static inline s64 ktime_to_us(const ktime_t kt) > > { > > return (s64) kt.tv.sec * USEC_PER_SEC + kt.tv.nsec / NSEC_PER_USEC; > > } > > > > Please check again include/linux/ktime.h > > tv struct is defined inside 'ktime_t' only if BITS_PER_LONG != 64 && > !defined(CONFIG_KTIME_SCALAR)
That's the difference between a "what about" suggestion and an actual patch... I was merely suggesting solvin it through a ktime_to_us(), not presenting a complete and tested patch. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html