[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <169477940678.27769.11961724945556415025.tip-bot2@tip-bot2>
Date: Fri, 15 Sep 2023 12:03:26 -0000
From: "tip-bot2 for Yury Norov" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Yury Norov <yury.norov@...il.com>, Ingo Molnar <mingo@...nel.org>,
Mel Gorman <mgorman@...e.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/core] sched/topology: Fix sched_numa_find_nth_cpu() comment
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 6d08ad2166f7770341ea56afad45fa41cd16ae62
Gitweb: https://git.kernel.org/tip/6d08ad2166f7770341ea56afad45fa41cd16ae62
Author: Yury Norov <yury.norov@...il.com>
AuthorDate: Sat, 19 Aug 2023 07:12:38 -07:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Fri, 15 Sep 2023 13:48:11 +02:00
sched/topology: Fix sched_numa_find_nth_cpu() comment
Reword sched_numa_find_nth_cpu() comment and make it kernel-doc compatible.
Signed-off-by: Yury Norov <yury.norov@...il.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: Mel Gorman <mgorman@...e.de>
Link: https://lore.kernel.org/r/20230819141239.287290-7-yury.norov@gmail.com
---
kernel/sched/topology.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index a60ecf4..a7b50bb 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -2112,13 +2112,15 @@ static int hop_cmp(const void *a, const void *b)
return -1;
}
-/*
- * sched_numa_find_nth_cpu() - given the NUMA topology, find the Nth next cpu
- * closest to @cpu from @cpumask.
- * cpumask: cpumask to find a cpu from
- * cpu: Nth cpu to find
- *
- * returns: cpu, or nr_cpu_ids when nothing found.
+/**
+ * sched_numa_find_nth_cpu() - given the NUMA topology, find the Nth closest CPU
+ * from @cpus to @cpu, taking into account distance
+ * from a given @node.
+ * @cpus: cpumask to find a cpu from
+ * @cpu: CPU to start searching
+ * @node: NUMA node to order CPUs by distance
+ *
+ * Return: cpu, or nr_cpu_ids when nothing found.
*/
int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node)
{
Powered by blists - more mailing lists