From owner-dev-commits-src-all@freebsd.org Fri Jul 2 23:10:42 2021 Return-Path: Delivered-To: dev-commits-src-all@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 D5965673CF2; Fri, 2 Jul 2021 23:10:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GGrR65dXZz4ZMj; Fri, 2 Jul 2021 23:10:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a: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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AA7D21CB9A; Fri, 2 Jul 2021 23:10:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 162NAgDt099174; Fri, 2 Jul 2021 23:10:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 162NAgLH099173; Fri, 2 Jul 2021 23:10:42 GMT (envelope-from git) Date: Fri, 2 Jul 2021 23:10:42 GMT Message-Id: <202107022310.162NAgLH099173@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6329ca325e02 - main - hardclock.9: Refine some details MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6329ca325e02af4566346e725e2d07c85d4b3444 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2021 23:10:42 -0000 The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6329ca325e02af4566346e725e2d07c85d4b3444 commit 6329ca325e02af4566346e725e2d07c85d4b3444 Author: Warner Losh AuthorDate: 2021-07-02 23:09:19 +0000 Commit: Warner Losh CommitDate: 2021-07-02 23:10:35 +0000 hardclock.9: Refine some details Refine mistakes from adaptaton of NetBSD's hardclock man page to FreeBSD: o clarify what usermode means o clarify how often hardclock is called o remove Xr callout(9) since that's done elsewhere Reviewed by: mav@ Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D30982 --- share/man/man9/hardclock.9 | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/share/man/man9/hardclock.9 b/share/man/man9/hardclock.9 index 2aab68cb5f85..451ad8a28a93 100644 --- a/share/man/man9/hardclock.9 +++ b/share/man/man9/hardclock.9 @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd March 25, 2010 +.Dd July 1, 2021 .Dt HARDCLOCK 9 .Os .Sh NAME @@ -39,19 +39,26 @@ .Sh DESCRIPTION The .Fn hardclock -function is called -.Xr hz 9 -times per second. -It implements the real-time system clock. -The argument +function is called periodically based on pending work. +The rate ranges from +.Va hz +times per second on a very busy system, to twice a second on an idle system. +The .Va cnt -is the estimated number of ticks since the last call to -.Fn hardclock . +argument reports an estimate of the number of ticks since the last call. +The sum of +.Va cnt +over a second averages +.Va hz +over the long haul. +See +.Xr hz 9 +for important details over shorter time scales. The argument .Va usermode is none-zero when .Fn hardclock -is called from a user-mode context. +is called from an context that interrupted usermode execution. .Pp .Fn hardclock may perform different tasks such as: @@ -96,5 +103,4 @@ processing. .Xr ntp_adjtime 2 , .Xr signal 3 , .Xr ntpd 8 , -.Xr callout 9 , .Xr hz 9