From nobody Thu Jun 27 15:31:20 2024 X-Original-To: dev-commits-src-branches@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 4W92bY2lmRz5Ptrh; Thu, 27 Jun 2024 15:31:21 +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 4W92bY06fDz4CVc; Thu, 27 Jun 2024 15:31:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502281; 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=RYd2OPuYS9211U7Ir7K+8aMT2pb/AKX5wpxnUlLl+6U=; b=jWvCLJyfPqVnW2nwKGgCOXq6n4monvW7dQczKfjrv0Jis6tmwh6kcIdVDUPHF9geJx9EWO xvch99v/jM8jOH3mI/ICJC8J6PBZeFcBx6eeGlgs0TVD6SuCYTRCh+i5hrKWhNxVlBiVeI L8WebSawhOSYc/ruJJ0jj8sWP9CrIiu2DNBZffFFGnOn3eNOKH40qr1SLDsOJencMiE9C9 feCXDcxhDj0h6+3oxabd+brzhwSRXpqWjz+PEn0AW/ChNWQLP0z7IB0quWPuegRCdm5aoz bjrGu4Nrb9vsFVcebJoZAJqxD8uoBcf5q87jBEFcXoqHP3rEpOt80Gk7xYe3ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502281; a=rsa-sha256; cv=none; b=fMqXZ7DnIPw3oq5BxB2Ix/A8ZiGiUrXYvvTZUSkhK23i7uOPIvQQ80XKMjyTWIK6tlWvmD pcrV05QlJQPe02KpJR4gmRTl6I4z3c/QRPhW/8VssjTzcLe9ot37Qc52L/RNa/IkgW1o6N OJgFtsgj4HBJYsNmDIkGSygCu6ZdfO1Pw2e0e6UeEEEDzPDSyHHr9tck00b+R63FMbVdmP FR7hpjNmWibIjrx+vYtjWJndJX2/4wfVxuBwDef9jbFhIyCDYKNAiv3Q5r7Sk5cvPcEwpR I3RIbutSimfoQWi0zJ6DQVLRL2jnW6Kh+GJG8iPF0v/F7ZaWCT+tN3NMTGID+w== 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=1719502281; 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=RYd2OPuYS9211U7Ir7K+8aMT2pb/AKX5wpxnUlLl+6U=; b=ccBIFYqnMNE2n92EPwFGHtOXJA0LmGdbraKKIUeSuo0XHz6DwhbC7pE75CXG17E2NV40dE QC9rceOMNo4Q5A4n6sKIOg305MF+esh0Qq9OuQOYh8jUUKUGKKdZLRqUrJ+5WaLAI88EWr 9686dD/eQjZ3+h+FqJg5C0MI4Q0pcjyeL4TrdNyZlVBKvB3ewPVM0X62TEN2lq4yb0oqRN qU8HphprRg0yJfGpnzo6YlW4jsd3CSHfLaVXYmT349gbHXpmUmeFs+UH6zrX+IHoMZ13FU WdkfmwE/EmZ1JMpPQceDu4zHkeSXwx93ADUolvp5avpL8Kip+QDSzc0AjhkFUA== 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 4W92bX6B7hzHcv; Thu, 27 Jun 2024 15:31:20 +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 45RFVKKA079265; Thu, 27 Jun 2024 15:31:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFVKkZ079262; Thu, 27 Jun 2024 15:31:20 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:31:20 GMT Message-Id: <202406271531.45RFVKkZ079262@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: b31999c05135 - stable/14 - physmem: Correct a comment List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: b31999c05135cec637cfffbb62dbccfa47b1cc5c Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b31999c05135cec637cfffbb62dbccfa47b1cc5c commit b31999c05135cec637cfffbb62dbccfa47b1cc5c Author: Mark Johnston AuthorDate: 2024-06-20 20:43:39 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:42 +0000 physmem: Correct a comment MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. (cherry picked from commit f45213c74cbac7f41ab3c94440cb37a2fd92a449) --- 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 79fedf58d66d..e74a11f47c2c 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,