From nobody Mon Mar 20 20:13:32 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PgQsm3vXmz40BrH; Mon, 20 Mar 2023 20:13:32 +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 4PgQsm34zmz3J74; Mon, 20 Mar 2023 20:13:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679343212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=knghHxDOqVykZsXdQVlgb4Sjn2gvnVPgrXRer2vMj4g=; b=DCNkhvjwAkj/mZX/5/oav6L3GquoJm51Ued89pzeG+vn0tND2lWUngMZoXsrk1MVwfv9j1 EdPdI19LoQNItio/rGFEG7eYqaNubVbd19whm2owM3JGFjv2FJ7i3rpOeerkkgrgDlE5fc uvSFqNIAh8LB/CMVpux6prLTRIF2sxg06+dRloeFhu6FvP6pc8xe6nnOYrA4WRsTodqXm0 PDtFRxxDiyUmiLG7ONlPqEeRRzGhQo2eDuMBqECzKM/jrJJ725ToaWr+tdIpqnubAovR6t YKQxBrF5UE79T3Try7qLz07Nog3m7lCYqhQ6VLcBX0q6yHvXsOYuSSv65/kWoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679343212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=knghHxDOqVykZsXdQVlgb4Sjn2gvnVPgrXRer2vMj4g=; b=UhxMS0mFmpbwecAA3O7ynDsp60lslAbQc1pHvl1P5XHqjbtchmmPZPP0tMHc28rFLN34yd OB8syFjNeOjSB3wGYI832vV8ouuEsG9xa/0Ri9LNUlJaNlL3pAnAXgYUAuZcwgslSsj5SR kBE5OiBifa9npEoMNtxAHJCtntGTx2txvDGgHFqWF35hVRwy4/EY5lPTHfE0GzW2EVCTr/ 7VHfeETlbg52RIHvvh9l3SW/yZR0BANbymCYrHnhlJVadmG0KXF/5kBPloyfEBqLBHlneg pe60R79hlmiVm7FK5ShwM4LKlfjVcZ7L9EdQFZd6D4BTiCmS7ifHJ3kDgcZwVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679343212; a=rsa-sha256; cv=none; b=WXa2O7WEmgqgZOLzxxZM+fn4HCujUgRg0hnXTBSESWRdIA3UcihV7LuY+wj/rtJPZ5AKIc u5kxZfk6FAALWzS33kWTvQ087eEdIRleIJNvs9XXjH68cl0pMtiJLsZJMUxmmr33XhGUYQ 4l5P7GE0sT0LB4S7FHpcyw7F+zkgLZLWOUpVVfUiay7YSXF9kl0kZfFx/lk35FPVWEpPEp rzC2xub6E3zBrt4UJa+FSOM8X1Rd8hTDmTTg1VpJnFidMdlenht+g9ubMJIGnFoG48tIML Qv4+OwqxLXeAnnxkXqZNnsnx/GJzcizY0dptXCLL0MMCyfsxGNoOfMklY3tIIg== 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 4PgQsm2B6FzkSl; Mon, 20 Mar 2023 20:13:32 +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 32KKDWXp033217; Mon, 20 Mar 2023 20:13:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32KKDWDr033216; Mon, 20 Mar 2023 20:13:32 GMT (envelope-from git) Date: Mon, 20 Mar 2023 20:13:32 GMT Message-Id: <202303202013.32KKDWDr033216@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 195aa533c799 - main - hardclock(9): small cleanups List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 195aa533c7998d2ad236f1492b4bf232b5a32080 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=195aa533c7998d2ad236f1492b4bf232b5a32080 commit 195aa533c7998d2ad236f1492b4bf232b5a32080 Author: Mitchell Horne AuthorDate: 2023-03-20 20:01:03 +0000 Commit: Mitchell Horne CommitDate: 2023-03-20 20:12:12 +0000 hardclock(9): small cleanups - Improve the wording that describes cnt and hz (avoid "the long haul") - Use .Fa for function arguments - Fix formatting of parenthesis around swi(9) xref - removed xref to non-existent options(4) - xref polling(4) - consistently list xrefs in SEE ALSO - xref eventtimers(9) in SEE ALSO Reviewed by: mav, rpokala MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39137 --- share/man/man9/hardclock.9 | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/share/man/man9/hardclock.9 b/share/man/man9/hardclock.9 index 451ad8a28a93..757aed112ccb 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 July 1, 2021 +.Dd February 27, 2023 .Dt HARDCLOCK 9 .Os .Sh NAME @@ -44,19 +44,18 @@ 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 +.Fa cnt 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. +Over long timescales, the average sum of +.Fa cnt +over one second is +.Va hz . See .Xr hz 9 for important details over shorter time scales. -The argument -.Va usermode -is none-zero when +The +.Fa usermode +argument is non-zero when .Fn hardclock is called from an context that interrupted usermode execution. .Pp @@ -77,18 +76,23 @@ or .Xr adjtime 2 induced changes and leap seconds, as well as any necessary compensations to keep in sync with PPS signals or external clocks, if -support for this is in the kernel (see -.Xr options 4 ) . +supported by the kernel. .It -Schedule softclock interrupts ( -.Xr swi 9 ) +Schedule softclock interrupts +.Po +.Xr swi 9 +.Pc processing. .It Collect .Xr hwpmc 4 statistics. .It -Do device polling, when enabled. +Do device polling, when enabled +.Po +see +.Xr polling 4 +.Pc . .It Implement software .Xr watchdog 9 @@ -102,5 +106,11 @@ processing. .Xr adjtime 2 , .Xr ntp_adjtime 2 , .Xr signal 3 , +.Xr hwpmc 4 , +.Xr polling 4 , .Xr ntpd 8 , -.Xr hz 9 +.Xr epoch 9 , +.Xr eventtimers 9 , +.Xr hz 9 , +.Xr swi 9 , +.Xr watchdog 9