linux 6.3: Fixup for Project C with NUMA enabled
https://gitlab.com/alfredchen/linux-prjc/-/issues/80#note_1368202615
This commit is contained in:
@@ -10411,3 +10411,18 @@ index ff0536cea968..ce266990006d 100644
|
||||
};
|
||||
struct wakeup_test_data *x = data;
|
||||
|
||||
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
|
||||
index c69f7c8a8f7f..21256b848f0b 100644
|
||||
--- a/kernel/sched/topology.c
|
||||
+++ b/kernel/sched/topology.c
|
||||
@@ -2755,5 +2755,10 @@ int sched_numa_find_closest(const struct cpumask *cpus, int cpu)
|
||||
{
|
||||
return best_mask_cpu(cpu, cpus);
|
||||
}
|
||||
+
|
||||
+int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node)
|
||||
+{
|
||||
+ return cpumask_nth(cpu, cpus);
|
||||
+}
|
||||
#endif /* CONFIG_NUMA */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user