From owner-svn-src-head@freebsd.org Sun Jul 12 13:36:37 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 AE3C8363AE3; Sun, 12 Jul 2020 13:36:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4SVY4BmZz4Y23; Sun, 12 Jul 2020 13:36:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 34E02234F8; Sun, 12 Jul 2020 13:36:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::b58d:185d:edd7:b302] (unknown [IPv6:2001:470:7a58:0:b58d:185d:edd7:b302]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DDBA63F0B0; Sun, 12 Jul 2020 15:36:34 +0200 (CEST) From: Dimitry Andric Message-Id: <010ACFFA-35B7-4984-A5E7-1504C72D56F9@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_3BE14362-335B-4C18-976D-6487A1EC1C5B"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: svn commit: r363125 - head/sys/compat/linux Date: Sun, 12 Jul 2020 15:36:25 +0200 In-Reply-To: <202007120951.06C9pA4F024281@repo.freebsd.org> Cc: src-committers , svn-src-all , svn-src-head@freebsd.org To: Alexander Leidinger References: <202007120951.06C9pA4F024281@repo.freebsd.org> X-Mailer: Apple Mail (2.3445.104.14) 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 13:36:37 -0000 --Apple-Mail=_3BE14362-335B-4C18-976D-6487A1EC1C5B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 12 Jul 2020, at 11:51, Alexander Leidinger 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 --Apple-Mail=_3BE14362-335B-4C18-976D-6487A1EC1C5B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXwsR2QAKCRCwXqMKLiCW oyk/AKCEcInURNI0bPCUNVoLlyIBbI8HPgCg97aWShFuMTdB6Lkhl5PB6PgwWQ8= =m7ks -----END PGP SIGNATURE----- --Apple-Mail=_3BE14362-335B-4C18-976D-6487A1EC1C5B--