git: d526b2115e7e - main - linuxkpi: Add `num_online_nodes()`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jan 2025 16:03:14 UTC
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)
{