From nobody Thu Feb 16 11:56:43 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 4PHYMH4FSjz3q5xT; Thu, 16 Feb 2023 11:56:43 +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 4PHYMH38kKz4ClY; Thu, 16 Feb 2023 11:56:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548603; 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=05P1exlyOZVnrusW7jKyf2hf0yiMCTRI1Dus79oLjEE=; b=recYn3VbUFsE4RbjCHr2saE5EZoxRNaBv6gQXbht7ZM+P/owqjwiGQnYxajmfUV9++pxLv X6UGaF6YsoYJ83FJAqKMyJCE0In0ovUCB1iquuyT/jzs7z7phh3APH8aBazirbu2BygwYW /E2632VbuY3YnfklJU6sIeb9ItcfkvvcYg/fytu2uY6W3TiAZlweb7/zrd5vQ8jGBQaI9n PQpnLlj8++q2J/6gTolwZhRCmXT+w+kOgjR9014B4KfqxS6axzoiRvNBccytOCMqT9TLwQ LxSfydNfl+gP727ztJbrOz7Pw74qbvkmjkKGkqGSA/5oc9XrKs6DdzKouzJgWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548603; 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=05P1exlyOZVnrusW7jKyf2hf0yiMCTRI1Dus79oLjEE=; b=TUmqyHBjmKEFsw8lJeiQ3cM9pGFo0dkziYncZL8TIZvGafrxZJsgQj4B6gx3uPwIBvJmxr tR3ldlyg9VXiFGD2Q9Ac02dnLY7ipZhXHYnyZqT0U2rNRhgXBCks+ytrPOpc84H2ctAiG8 4BciXL1bk1UdigZMCFduz34BiuB25+If9vurRMjK7qyU3eawAmGVS4f6pG3HjmdaWlI07H +H1tbb0XXeVyEh2QBtVcuKiiFOB3BvqcHMAvWdTHlmvqje2JXinlKKNu7LBI5rk/AvfVOX VbqdQIDNHFolTcTCV7HjXq1C5PRPhdrYcw60neMw6rYk/A/CiggIkzcLo0rLEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548603; a=rsa-sha256; cv=none; b=kg6S95yF2XOdy9wAqYAb/NtUIWuL0X6lGMpoZc2/br+y9KcFPqn325EtgmxB/XtnQQhsvd yvqU+T4r/lY4v+LiUPVF198tHRNVUrgcAR/sS/JC+2iNMCqDNdKrRUseme5RBcyoyHcJUe gyDUI6g+afhzOlzmP4xByVZoJfMTa98OjvaNgl7EMldW7HBGDLNVkzx2cvlpAT+9DYdf5d mr8YvuQR+ofbYYrnXIjTEjMIxXRMhs48EGF2yWnaJOb3saF0GuiaPpFUR240qOiiYzaMM1 htWQUN4s/Byi0sf16HeY4pI8PSgMZ85CL5N0zH/MPt8rj+S0ahAYIHVacJxddw== 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 4PHYMH21fpz12j4; Thu, 16 Feb 2023 11:56:43 +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 31GBuhV6056610; Thu, 16 Feb 2023 11:56:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBuhMl056609; Thu, 16 Feb 2023 11:56:43 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:43 GMT Message-Id: <202302161156.31GBuhMl056609@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: a88628ff0cca - stable/13 - linuxkpi: Define `totalram_pages()` 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a88628ff0ccae15eb8fb87a4b8f75c1f2766e4f4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=a88628ff0ccae15eb8fb87a4b8f75c1f2766e4f4 commit a88628ff0ccae15eb8fb87a4b8f75c1f2766e4f4 Author: Jean-Sébastien Pédron AuthorDate: 2023-02-08 17:52:43 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:22 +0000 linuxkpi: Define `totalram_pages()` It returns `physmem`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38531 (cherry picked from commit 53da54b936e646ba1216c0cc19582dad058ca5d0) --- sys/compat/linuxkpi/common/include/linux/mm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h index 9eb5ce7c5280..c1011b56fe24 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -340,6 +340,12 @@ unlock_page(struct page *page) extern int is_vmalloc_addr(const void *addr); void si_meminfo(struct sysinfo *si); +static inline unsigned long +totalram_pages(void) +{ + return ((unsigned long)physmem); +} + #define unmap_mapping_range(...) lkpi_unmap_mapping_range(__VA_ARGS__) void lkpi_unmap_mapping_range(void *obj, loff_t const holebegin __unused, loff_t const holelen, int even_cows __unused);