[PATCH 1/3] cputime_nsecs: use math64.h for nsec resolution conversion helpers

Frederic Weisbecker fweisbec at gmail.com
Mon Apr 15 10:08:24 EDT 2013


2013/4/15 Kevin Hilman <khilman at linaro.org>:
> Frederic Weisbecker <fweisbec at gmail.com> writes:
>
>> On Wed, Mar 20, 2013 at 04:34:25PM -0700, Kevin Hilman wrote:
>>> For the nsec resolution conversions to be useable on non 64-bit
>>> architectures, the helpers in <linux/math64.h> need to be used so the
>>> right arch-specific 64-bit math helpers can be used (e.g. do_div())
>>>
>>> Cc: Frederic Weisbecker <fweisbec at gmail.com>
>>> Signed-off-by: Kevin Hilman <khilman at linaro.org>
>>
>> Ok the patch is nice!
>>
>> I'm queuing it.
>
> Thanks, did you queue PATCH 3/3 also to remove the 64-bit limitation
> from VIRT_CPU_ACCOUNTING_GEN:  https://lkml.org/lkml/2013/3/20/656

Not yet, for this one I need to deeply check we haven't forgotten
anything concerning cputime_t operations in 32 bits archs.



More information about the linux-arm-kernel mailing list