svn commit: r363125 - head/sys/compat/linux
Dimitry Andric
dim at FreeBSD.org
Sun Jul 12 13:36:37 UTC 2020
On 12 Jul 2020, at 11:51, Alexander Leidinger <netchild at freebsd.org> wrote:
>
> Author: netchild
> Date: Sun Jul 12 09:51:09 2020
> New Revision: 363125
> URL: https://svnweb.freebsd.org/changeset/base/363125
>
> Log:
> Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28).
>
> It is documented as a raw hardware-based clock not subject to NTP or
> incremental adjustments. With this "not as precise as CLOCK_MONOTONIC"
> description in mind, map it to our CLOCK_MONOTNIC_FAST (the same
> mapping as for the linux CLOCK_MONOTONIC_COARSE).
Okay, but:
> @@ -212,6 +212,7 @@ linux_to_native_clockid(clockid_t *n, clockid_t l)
> *n = CLOCK_THREAD_CPUTIME_ID;
> break;
> case LINUX_CLOCK_REALTIME_COARSE:
> + case LINUX_CLOCK_MONOTONIC_RAW:
> *n = CLOCK_REALTIME_FAST;
> break;
> case LINUX_CLOCK_MONOTONIC_COARSE:
this shows it is actually mapped to CLOCK_REALTIME_FAST, not
CLOCK_MONOTONIC_FAST. Is the code right, or the commit message? :)
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20200712/fd0788d8/attachment.sig>
More information about the svn-src-head
mailing list