From owner-freebsd-arch@FreeBSD.ORG Sat Jun 16 20:39:37 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69A96106566C; Sat, 16 Jun 2012 20:39:37 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id D46F08FC0C; Sat, 16 Jun 2012 20:39:36 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q5GKdNAr096806; Sat, 16 Jun 2012 23:39:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q5GKdNbs068233; Sat, 16 Jun 2012 23:39:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q5GKdNQb068232; Sat, 16 Jun 2012 23:39:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 16 Jun 2012 23:39:22 +0300 From: Konstantin Belousov To: arch@freebsd.org Message-ID: <20120616203922.GV2337@deviant.kiev.zoral.com.ua> References: <20120612215319.GR2337@deviant.kiev.zoral.com.ua> <201206131537.34738.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RI0j69zTdciYrvy/" Content-Disposition: inline In-Reply-To: <201206131537.34738.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: flo@freebsd.org, bde@freebsd.org Subject: Re: Fast gettimeofday(2) and clock_gettime(2) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2012 20:39:37 -0000 --RI0j69zTdciYrvy/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The latest version of the patch is at http://people.freebsd.org/~kib/misc/moronix.6.patch The patch was extensively discussed with Bruce, reviewed by John and performance-tested by Florian. I consider it ready for commit. Patch enables shared page on i386, since it now has a use on this architecture as well. For non-x86, a placeholder is implemented to allow the architectures to compile. I cannot test them, and I would be glad to get confirmations that gettimeofday() is not broken on them. I looked over some non-x86 architectures, in particular, mips, powerpc and sparc, which have facilities similar to tsc. I definitely will help for architecture maintainers to implement usermode gettimeofday(). Unless somebody raise valid objections, I plan to commit this next week. --RI0j69zTdciYrvy/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/c7voACgkQC3+MBN1Mb4iDSgCg6ZHZli4DehQT+je168ztjxdy U+sAoNn7YjndjpUl8337eBKAhsGVZklu =bHrb -----END PGP SIGNATURE----- --RI0j69zTdciYrvy/--