Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 94ED684DC2 for ; Fri, 28 Jul 2023 10:39:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id O1CF3MBHxiUH for ; Fri, 28 Jul 2023 10:39:01 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 339FD84CD7 for ; Fri, 28 Jul 2023 10:39:01 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 31649FBDB; Fri, 28 Jul 2023 10:39:01 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 28 Jul 2023 10:39:01 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/arch/xen/xen To: source-changes@NetBSD.org Approved: for-source-only Reply-To: riastradh@netbsd.org X-Mailer: log_accum Message-Id: <20230728103901.31649FBDB@cvs.NetBSD.org> Module Name: src Committed By: riastradh Date: Fri Jul 28 10:39:01 UTC 2023 Modified Files: src/sys/arch/xen/xen: xen_clock.c Log Message: xen_clock(4): Compute NS_PER_TICK only once per call. This involves a division by an unknown number, so let's cache it. XXX Could do better by precomputing it in xen_resumeclocks, with some effort to ensure concurrent calls don't stomp on each other. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/xen/xen/xen_clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.