From 95099d4622f8cb224d94e314c7a8e0df60b13f87 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 09 Dec 2023 08:38:01 +0000
Subject: [PATCH] enable docker ppp
---
kernel/drivers/of/of_numa.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/kernel/drivers/of/of_numa.c b/kernel/drivers/of/of_numa.c
index f5b4522..fe6b136 100644
--- a/kernel/drivers/of/of_numa.c
+++ b/kernel/drivers/of/of_numa.c
@@ -24,18 +24,9 @@
{
u32 nid;
int r;
- struct device_node *cpus;
- struct device_node *np = NULL;
+ struct device_node *np;
- cpus = of_find_node_by_path("/cpus");
- if (!cpus)
- return;
-
- for_each_child_of_node(cpus, np) {
- /* Skip things that are not CPUs */
- if (of_node_cmp(np->type, "cpu") != 0)
- continue;
-
+ for_each_of_cpu_node(np) {
r = of_property_read_u32(np, "numa-node-id", &nid);
if (r)
continue;
@@ -46,8 +37,6 @@
else
node_set(nid, numa_nodes_parsed);
}
-
- of_node_put(cpus);
}
static int __init of_numa_parse_memory_nodes(void)
--
Gitblit v1.6.2