From ac8b6420c69dad35ce2e95eab5dbe1d0948b1175 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 26 Apr 2023 12:50:55 +0200 Subject: [PATCH] linux 6.3: Fixup for Project C with NUMA enabled https://gitlab.com/alfredchen/linux-prjc/-/issues/80#note_1368202615 --- linux-tkg-patches/6.3/0009-prjc_v6.3-r0.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/linux-tkg-patches/6.3/0009-prjc_v6.3-r0.patch b/linux-tkg-patches/6.3/0009-prjc_v6.3-r0.patch index 61e0473..859e9c6 100644 --- a/linux-tkg-patches/6.3/0009-prjc_v6.3-r0.patch +++ b/linux-tkg-patches/6.3/0009-prjc_v6.3-r0.patch @@ -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