From owner-svn-src-head@freebsd.org Sun Jul 12 16:17:44 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 980FF367741; Sun, 12 Jul 2020 16:17:44 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4X4R5Chcz3SN4; Sun, 12 Jul 2020 16:17:43 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b16569f.dip0.t-ipconnect.de [91.22.86.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id C9D211697; Sun, 12 Jul 2020 18:17:33 +0200 (CEST) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id AA87B10B8; Sun, 12 Jul 2020 18:17:15 +0200 (CEST) Date: Sun, 12 Jul 2020 18:17:15 +0200 Message-ID: <20200712181715.Horde.YfOdq0fEkeFHjcx0fXxQcX1@webmail.leidinger.net> From: Alexander Leidinger To: Dimitry Andric Cc: src-committers , svn-src-all , svn-src-head@freebsd.org Subject: Re: svn commit: r363125 - head/sys/compat/linux References: <202007120951.06C9pA4F024281@repo.freebsd.org> <010ACFFA-35B7-4984-A5E7-1504C72D56F9@FreeBSD.org> In-Reply-To: <010ACFFA-35B7-4984-A5E7-1504C72D56F9@FreeBSD.org> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_wOku1sUdsJw5iUPKYvDG9Fi"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4B4X4R5Chcz3SN4 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 16:17:44 -0000 This message is in MIME format and has been PGP signed. --=_wOku1sUdsJw5iUPKYvDG9Fi Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Dimitry Andric (from Sun, 12 Jul 2020=20=20 15:36:25=20+0200): > On 12 Jul 2020, at 11:51, Alexander Leidinger wrot= e: >> >> 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 >=3D 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 =3D CLOCK_THREAD_CPUTIME_ID; >> break; >> case LINUX_CLOCK_REALTIME_COARSE: >> + case LINUX_CLOCK_MONOTONIC_RAW: >> *n =3D 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? :) The commit message and the code I have running are right, the code I=20=20 committed=20from a "no other change than that"-svn-tree was not. :( I think I should switch to "diff | patch" even for one-liners like that. I commited the fix based upon another message I've seen before this=20=20 one,=20but thanks for looking at the code. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_wOku1sUdsJw5iUPKYvDG9Fi Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJfCzeLAAoJEBINsJsD+NiGiH0P/jUVckgElq1GHVof81Ns1uAl s8LUcIHt32XgRTNNJKH672y0X0QipVqrpz+iCghdsfF+zgpIzPI6giz+/ZETaqAs en4ypIW1XZhKjVoSzAhvSUv7B6B0HpQoZxi9O3nSpkDeaRdBFsVuoBcoT/DN3AcY Jb2H87Pl1nBVM4inkqyXfA19ALE+ZSuoYrfoQbJBLuV4iSWJLYecV1YE1Fr4SPfi 2t2lmSYBFpQXhVaXSa351thzpSNrRO1LS5axDkmIjORKnDxb9sn+FPkJrXD5RKfT +8MjjQ5kUrYWfqFPhhPclUXN5Dc2pMrELAJi0lfAH7TBBhL7YVP/IbBBvKBbthtn nUEUYGF471VMnD81EAI016d9SYyoqyIjQM0ab53a8EUDsz+r/tt76UC+nyHs2Rmr yqr5MGTB+dvugrAV22sgCrzxoQ5MbwrS+noqZqBrhNlY3s3ZumMdNcHRu50h9MKB WfBSciH/9061RQXxFG7z7qnH9tr8F376ttydytG4Zu5RDVY7tVx5rBdx4/ImFaLK B8IjoJbLSwnLTtCFPexrKT2BGdnGcj7g4kc3/x3LsjWBHpZUeyFEjF7o5kZJPJEG jKsDJMCvxvGvmpnxZeUYV2Nh1V9/gAVTxLI4UVNrF+q/msvxRG/H7h4p/dwwoHLr 2VMzx8GeUgW59sbOapgK =WHPn -----END PGP SIGNATURE----- --=_wOku1sUdsJw5iUPKYvDG9Fi--