Re: [PATCH] Provide u64 version of jiffies_to_usecs() in kernel/tsacct.c

Roman Zippel
2008-03-12T23:53:41Z

Hi,

On Monday 25. February 2008, Jonathan Lim wrote:

> +u64 jiffies_64_to_usecs(const u64 j)
> +{
> + return div64_64(j*HZ_TO_USEC_NUM + HZ_TO_USEC_DEN-1, HZ_TO_USEC_DEN);
> +}
> +EXPORT_SYMBOL(jiffies_64_to_usecs);

Please also adapt the "BITS_PER_LONG == 32" part from jiffies_to_usecs(), it
should provide enough resolution to avoid the div64_64() here.

bye, Roman