Messages in this thread | | | From | Roman Zippel <> | Subject | Re: [PATCH] Provide u64 version of jiffies_to_usecs() in kernel/tsacct.c | Date | Thu, 13 Mar 2008 00:53:22 +0100 |
| |
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
| |