Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2025 16:03:14 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d526b2115e7e - main - linuxkpi: Add `num_online_nodes()`
Message-ID:  <202501311603.50VG3EDD038571@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=d526b2115e7e67991a4a4fe497cb7e5939ad55e6

commit d526b2115e7e67991a4a4fe497cb7e5939ad55e6
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2024-12-22 18:37:44 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2025-01-31 16:00:47 +0000

    linuxkpi: Add `num_online_nodes()`
    
    [Why]
    This is used by the amdkfd DRM driver in Linux 6.7.
    
    Reviewed by:    manu
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D48749
---
 sys/compat/linuxkpi/common/include/linux/nodemask.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/nodemask.h b/sys/compat/linuxkpi/common/include/linux/nodemask.h
index e61573bbc19f..7a245cc6f256 100644
--- a/sys/compat/linuxkpi/common/include/linux/nodemask.h
+++ b/sys/compat/linuxkpi/common/include/linux/nodemask.h
@@ -30,6 +30,12 @@
 
 #include <linux/kernel.h>	/* pr_debug */
 
+static inline int
+num_online_nodes(void)
+{
+	return (1);
+}
+
 static inline int
 num_possible_nodes(void)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501311603.50VG3EDD038571>