[ovs-dev] [PATCH 18/20] datapath: use ktime_get_ts64() instead of ktime_get_ts()

Arnd Bergmann arnd at arndb.de
Fri Feb 2 20:13:41 UTC 2018


On Fri, Feb 2, 2018 at 7:31 PM, Gregory Rose <gvrose8192 at gmail.com> wrote:
> On 2/2/2018 10:18 AM, Pravin Shelar wrote:
>>
>> On Tue, Jan 30, 2018 at 4:40 PM, Gregory Rose <gvrose8192 at gmail.com>
>>
>> This is done in compat code, can you move it to respective header file?
>
>
> Yes - my own preference is to keep these sorts of things close to where
> they're used but
> I suppose there is a good chance we'll use ktime_get_ts64 elsewhere in the
> future.  So
> that's fine by me.

You could decide to use ktime_get_ns() divided by NSEC_PER_MSEC
instead of getting that number from ktime_get_ts64(), that would be
more portable, though a little bit slower on 32-bit architectures.

       Arnd


More information about the dev mailing list