From nobody Thu Jun 20 22:00:06 2024 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 4W4vYM01Bsz5NqBg; Thu, 20 Jun 2024 22:00:07 +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 4W4vYL6Zpnz48jb; Thu, 20 Jun 2024 22:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718920806; 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=ZW3m/2tI+W7OKnNpyQMbGyPQvOwLARAPNJepafkvRmg=; b=Dw5AYuRsO/CQDKyB8HDi1Sd3XPrRd7/wXecXdgUDSNFibOEZBQ+Zc784tAhetLWyl/vrNH lxwxRkzEVegxgidnvXTJfjA4dDEXL+FEmm2tkn3K1f4jjeuvJAx2nRapC7yowbNOEzcXLR rekkizaZW6Z0YcfZioORZr2XGzpI3AaDcV6BeCQfsBzXpKg6qsESnn0jSskfUvZo4rM2E6 ipzYqr/yWYMn0Wrweb4i7n9ovHp9Q05rH0Yy22Bqa7A6TOC+WQh7crKX+gPcwQh8+ZT/O+ VBBypcaVzuZOg96x+TArULpQMOawiTD07Y6Vf3QRMyqHuKtFr/DBTG+QRyOI3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718920806; a=rsa-sha256; cv=none; b=bxBBdWQJ0bgnkkP7HcmfNO2jbIVQUM6/z+Z00Mr2B++hS+jYH7P55E0Fo4ijftGyYvs48X nlIhwSfEmn8L/8qGn0Q62WPacYoQqV4f4fLGGDU1VkWQFiXnx93MovnFpl34fIyqkBCF8P +WYkshzrQ5uaAnDhWhuaaPPYFXpwOkRLMr+PIOUDtSuJ6nR9N5FqGQYnxsUGfU9JQwF6IH qAMEouwcq8iJU/A4+BP+VbvF+KHRBMxTNeIFwZf/560KaKwHEodfZF4oAuPq3KDCE5guga epUO7uX6NEocL+C0jalZTegCADSgGSjmH5tFat8E/GT2e7Pe1Gc/lICLbFofzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718920806; 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=ZW3m/2tI+W7OKnNpyQMbGyPQvOwLARAPNJepafkvRmg=; b=nfzQHcChE/YgfOoHbc3JngGTEETiszc5hDhpDlIUkzgJ9ogRQcUoxSWm++YnYHFLPgIESw QwlNLvrVgCi1pOJ0bWkhHkRiGMF3/UDKxcO7nG2tysq1ABK0LmXzY8cJiI3e54Ajh7jWA9 GiXsB6+SyV/SF6Yu7YZOhNg2lLtY49le5Ghs88rOShwjha109jny2NfOB1e1AarzZVaXN1 DEMSLwWy0LwPtr7W7EgbdAe7VqlSzlGDL24Lwn/TtSmwQHc3Na/gM3wqTrcgmIigMOmHLt cNfv0Nuf1KR0u9m2gjx7wfyOOIhXk5nlKM1pNFgN2YOq8R1pfdl6gzhO40/pkw== 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 4W4vYL530Gzhdh; Thu, 20 Jun 2024 22:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45KM06dT076709; Thu, 20 Jun 2024 22:00:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45KM06je076704; Thu, 20 Jun 2024 22:00:06 GMT (envelope-from git) Date: Thu, 20 Jun 2024 22:00:06 GMT Message-Id: <202406202200.45KM06je076704@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f45213c74cba - main - physmem: Correct a comment 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f45213c74cbac7f41ab3c94440cb37a2fd92a449 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f45213c74cbac7f41ab3c94440cb37a2fd92a449 commit f45213c74cbac7f41ab3c94440cb37a2fd92a449 Author: Mark Johnston AuthorDate: 2024-06-20 20:43:39 +0000 Commit: Mark Johnston CommitDate: 2024-06-20 21:45:40 +0000 physmem: Correct a comment MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. --- sys/kern/subr_physmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index a45c36aef2d7..059566f0eccb 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -177,7 +177,8 @@ physmem_print_tables(void) * * Updates the value at *pavail with the sum of all pages in all hw regions. * - * Returns the number of pages of non-excluded memory added to the avail list. + * Returns the number of entries in the avail list, which is twice the number + * of returned regions. */ static size_t regions_to_avail(vm_paddr_t *avail, uint32_t exflags, size_t maxavail,