diff options
author | Xie Yongji <xieyongji@bytedance.com> | 2023-03-23 13:30:33 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-04-21 03:02:31 -0400 |
commit | aaf0594829c3a6f16bdf5d30904a7db4548dae15 (patch) | |
tree | bc137ea6674daf1160cb8d03f63fe07196f80965 | |
parent | e9d67e59f151eae964f749af74dbe4bd3b01b0d2 (diff) | |
download | lwn-aaf0594829c3a6f16bdf5d30904a7db4548dae15.tar.gz lwn-aaf0594829c3a6f16bdf5d30904a7db4548dae15.zip |
lib/group_cpus: Export group_cpus_evenly()
Export group_cpus_evenly() so that some modules
can make use of it to group CPUs evenly according
to NUMA and CPU locality.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230323053043.35-2-xieyongji@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | lib/group_cpus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/group_cpus.c b/lib/group_cpus.c index 9c837a35fef7..aa3f6815bb12 100644 --- a/lib/group_cpus.c +++ b/lib/group_cpus.c @@ -426,3 +426,4 @@ struct cpumask *group_cpus_evenly(unsigned int numgrps) return masks; } #endif /* CONFIG_SMP */ +EXPORT_SYMBOL_GPL(group_cpus_evenly); |