On Wed, 25 Apr 2007 01:10:28 +0900 (JST)
YOSHIFUJI Hideaki <[EMAIL PROTECTED]> wrote:
> How about this?
>
>
> +static inline s64 ktime_to_us(const ktime_t kt)
> +{
> + struct timeval tv = ktime_to_timeval(kt);
> + return tv.tv_sec * USEC_PER_SEC + tv.tv_usec;
> +}
> +
Well, I am afraid it's not 100% correct.
If you really want to return s64 you should do
return (s64) tv.tv_sec * USEC_PER_SEC + tv.tv_usec;
But then it might be overkill to compute a full s64 for TCP use, since we use
u32 vrtt
-
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