mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00: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@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Mel Gorman <mgorman@suse.de> Link: https://lore.kernel.org/r/20230819141239.287290-7-yury.norov@gmail.com
This commit is contained in:
parent
9ecea9ae4d
commit
6d08ad2166
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* returns: cpu, or nr_cpu_ids when nothing found.
|
||||
* Return: cpu, or nr_cpu_ids when nothing found.
|
||||
*/
|
||||
int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue